Browse Source

(+)构建文件

master
周沫沫历险记 2 years ago
parent
commit
58accc4e1e
  1. 17
      api/jenkinsfile

17
api/jenkinsfile

@ -0,0 +1,17 @@
pipeline {
agent {
node{
label 'jnlp-slave'
}
}
stages {
stage('Testing dc api......') {
steps {
buildName '#${BUILD_NUMBER} ~/pep/${JOB_NAME}:${IMAGE_VERSION}'
buildDescription 'harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION}'
sh 'nerdctl build -t harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION} .'
sh 'nerdctl push harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION}'
}}
}
}
Loading…
Cancel
Save