From ba5be7ee2439a90a0f24b37d8df84c951e1bc195 Mon Sep 17 00:00:00 2001 From: bpa <1370533105@qq.com> Date: Tue, 7 May 2024 02:32:02 +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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f81effb..9bb7e0e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -75,7 +75,7 @@ pipeline{ if(params.operation=='develop') { - sh "docker build -t 10.2.1.24:10242/bpa/kitchenmanage:${build_tag} ." + sh "docker build -t 10.2.1.24:10242/bpa/kitchenmanageapi:${build_tag} ." } } @@ -91,7 +91,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/kitchenmanage:${build_tag}" + sh "docker push 10.2.1.24:10242/bpa/kitchenmanageapi:${build_tag}" } } @@ -112,10 +112,10 @@ pipeline{ // input "确认要部署线上环境吗?" // } -sh "sed -i 's//${build_tag}/' k8s_kitchenmanage.yaml" - sh "sed -i 's//${env.BRANCH_NAME}/' k8s_kitchenmanage.yaml" - sh "sed -i 's//${params.environment}/' k8s_kitchenmanage.yaml" - sh "kubectl apply -f k8s_kitchenmanage.yaml --record" +//sh "sed -i 's//${build_tag}/' k8s_kitchenmanageapi.yaml" + // sh "sed -i 's//${env.BRANCH_NAME}/' k8s_kitchenmanageapi.yaml" + // sh "sed -i 's//${params.environment}/' k8s_kitchenmanageapi.yaml" + // sh "kubectl apply -f k8s_kitchenmanageapi.yaml --record"