Browse Source

将jenkinsfile放到git根目录

main
Julin 11 months ago
parent
commit
2d97001e7c
  1. 6
      jenkinsfile_pep_stats_report

6
code/pep-stats-report/jenkinsfile → jenkinsfile_pep_stats_report

@ -1,7 +1,7 @@
podTemplate { podTemplate {
node('pod-templ-jenkins-slave-common') { node('pod-templ-jenkins-slave-common') {
env.IMAGE_NAME = "${IOT_IMAGES_REGISTRY}/${pep}/${JOB_NAME}" env.IMAGE_NAME = "${IOT_IMAGES_REGISTRY}/${PEP}/${JOB_NAME}"
env.IMAGE_NAME_SHORT = "${pep}/${JOB_NAME}" env.IMAGE_NAME_SHORT = "${PEP}/${JOB_NAME}"
env.CODE_ADDR = "${GIT_ADDRESS}/free-sun/FS-PEP.git" env.CODE_ADDR = "${GIT_ADDRESS}/free-sun/FS-PEP.git"
stage('Run shell') { stage('Run shell') {
@ -9,7 +9,7 @@ podTemplate {
container('image-builder') { container('image-builder') {
sh''' sh'''
/kaniko/executor --context=${BUILD_WORKSPACE} --dockerfile=./Dockerfile /kaniko/executor --context=${BUILD_WORKSPACE} --dockerfile=./code/pep-stats-report/Dockerfile
--destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup --destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup
''' '''
} }
Loading…
Cancel
Save