Browse Source

指定项目目录

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

5
code/pep-stats-report/jenkinsfile

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

Loading…
Cancel
Save