From 6716673f140bd8f87ee0f9fb97226fab93902e8c Mon Sep 17 00:00:00 2001 From: bpa <1370533105@qq.com> Date: Fri, 12 Jan 2024 03:30:51 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'Jenkinsfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 066f96b..6bfd259 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ pipeline{ choice( description: 'EIP环境', name: 'environment', - choices: ['dev1'] + choices: ['saasdev1'] ) choice( @@ -28,7 +28,7 @@ pipeline{ choice( description: '是否下载包', name: 'isDownloadPackage', - choices: ['是','否'] + choices: ['否','是'] ) string( @@ -86,7 +86,7 @@ pipeline{ sh "rm -rf ./dist/*" sh "npm run build" } - sh "docker build -t 10.2.1.24:10242/bpa/kitchenweb:${build_tag} ." + sh "docker build -t 10.2.1.24:10242/bpa/groupmealweb:${build_tag} ." } } } @@ -105,7 +105,7 @@ pipeline{ sh "docker login -u ${harborUser} -p ${harborPassword} 10.2.1.24:10242" if(params.operation=='develop') { - sh "docker push 10.2.1.24:10242/bpa/kitchenweb:${build_tag}" + sh "docker push 10.2.1.24:10242/bpa/groupmealweb:${build_tag}" } } } @@ -127,10 +127,10 @@ pipeline{ // /root/eip/web/shell/linux-eipweb.install.sh eipweb ${build_tag} 80 // """ - sh "sed -i 's//${build_tag}/' k8s_kitchenweb.yaml" - sh "sed -i 's//${env.BRANCH_NAME}/' k8s_kitchenweb.yaml" - sh "sed -i 's//${params.environment}/' k8s_kitchenweb.yaml" - sh "kubectl apply -f k8s_kitchenweb.yaml --record" + sh "sed -i 's//${build_tag}/' k8s_groupmealweb.yaml" + sh "sed -i 's//${env.BRANCH_NAME}/' k8s_groupmealweb.yaml" + sh "sed -i 's//${params.environment}/' k8s_groupmealweb.yaml" + sh "kubectl apply -f k8s_groupmealweb.yaml --record" }