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}'
buildDescription 'harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION}'
sh '''
pwd
ls
nerdctl build -t harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION} ${JOB_NAME}/
cd ${JOB_NAME}/code/pep-stats-report
nerdctl build -t harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION} .
nerdctl push harbor.anxinyun.cn/pep/${JOB_NAME}:${IMAGE_VERSION}
'''
}

Loading…
Cancel
Save