Browse Source

测试构建的当前目录

main
Julin 2 years ago
parent
commit
88282a714b
  1. 8
      code/pep-stats-report/jenkinsfile

8
code/pep-stats-report/jenkinsfile

@ -10,8 +10,12 @@ pipeline {
steps { steps {
buildName '#${BUILD_NUMBER} ~/fs-cloud/${JOB_NAME}:${IMAGE_VERSION}' buildName '#${BUILD_NUMBER} ~/fs-cloud/${JOB_NAME}:${IMAGE_VERSION}'
buildDescription 'harbor.anxinyun.cn/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 '''
sh 'nerdctl push harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION}' pwd
nerdctl build -t harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION} .
nerdctl push harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION}
'''
} }
} }
} }

Loading…
Cancel
Save