From 2d97001e7c96eabecac1b0c734b74dada337666e Mon Sep 17 00:00:00 2001 From: Julin Date: Thu, 7 Dec 2023 14:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86jenkinsfile=E6=94=BE=E5=88=B0git?= =?UTF-8?q?=E6=A0=B9=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jenkinsfile => jenkinsfile_pep_stats_report | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename code/pep-stats-report/jenkinsfile => jenkinsfile_pep_stats_report (79%) diff --git a/code/pep-stats-report/jenkinsfile b/jenkinsfile_pep_stats_report similarity index 79% rename from code/pep-stats-report/jenkinsfile rename to jenkinsfile_pep_stats_report index 2b3cf99..f7aa2f8 100644 --- a/code/pep-stats-report/jenkinsfile +++ b/jenkinsfile_pep_stats_report @@ -1,7 +1,7 @@ podTemplate { node('pod-templ-jenkins-slave-common') { - env.IMAGE_NAME = "${IOT_IMAGES_REGISTRY}/${pep}/${JOB_NAME}" - env.IMAGE_NAME_SHORT = "${pep}/${JOB_NAME}" + env.IMAGE_NAME = "${IOT_IMAGES_REGISTRY}/${PEP}/${JOB_NAME}" + env.IMAGE_NAME_SHORT = "${PEP}/${JOB_NAME}" env.CODE_ADDR = "${GIT_ADDRESS}/free-sun/FS-PEP.git" stage('Run shell') { @@ -9,7 +9,7 @@ podTemplate { container('image-builder') { 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 ''' }