|
@ -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 |
|
|
''' |
|
|
''' |
|
|
} |
|
|
} |