Browse Source

测试构建的当前目录

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

2
code/pep-stats-report/jenkinsfile

@ -11,7 +11,7 @@ pipeline {
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 ''' sh '''
cd ${JOB_NAME}/code/pep-stats-report cd ./code/pep-stats-report
nerdctl build -t harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION} . nerdctl build -t harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION} .
nerdctl push harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION} nerdctl push harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION}
''' '''

Loading…
Cancel
Save