From 03ca4b7d15eba7f573cb73b45a5b0bac6a3c3ff9 Mon Sep 17 00:00:00 2001 From: bpa <1370533105@qq.com> Date: Tue, 26 Mar 2024 06:17: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 ce99671..1034142 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -75,7 +75,7 @@ pipeline{ if(params.operation=='develop') { - sh "docker build -t 10.2.1.24:10242/bpa/groupmealorder:${build_tag} ." + sh "docker build -t 10.2.1.24:10242/bpa/order:${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/groupmealorder:${build_tag}" + sh "docker push 10.2.1.24:10242/bpa/order:${build_tag}" } } @@ -112,10 +112,10 @@ pipeline{ // input "确认要部署线上环境吗?" // } -sh "sed -i 's//${build_tag}/' k8s_groupmealorder.yaml" - sh "sed -i 's//${env.BRANCH_NAME}/' k8s_groupmealorder.yaml" - sh "sed -i 's//${params.environment}/' k8s_groupmealorder.yaml" - sh "kubectl apply -f k8s_groupmealorder.yaml --record" + // sh "sed -i 's//${build_tag}/' k8s_order.yaml" + // sh "sed -i 's//${env.BRANCH_NAME}/' k8s_order.yaml" + // sh "sed -i 's//${params.environment}/' k8s_order.yaml" + // sh "kubectl apply -f k8s_order.yaml --record"