From 9e8b10a3574e40cd05f2da9ced862a1ef0dcd304 Mon Sep 17 00:00:00 2001 From: newrain001 Date: Wed, 20 Dec 2023 21:50:38 +0800 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0398433..5447af8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -82,8 +82,8 @@ spec: steps { container('kubectl') { sh """ - sed -i "s/REPLICAS/${env.REPLICAS}/;s/HARBOR_HOST/${env.HARBOR_HOST}/;s/NAMESPACE_NAME/${env.NAMESPACE_NAME}/;s/REPOSITORY_NAME/${env.REPOSITORY_NAME}/;s/TAG/${env.TAG}/" ${YAML_PATH} - kubectl apply -f ${YAML_PATH} + sed -i "s/REPLICAS/${env.REPLICAS}/;s/HARBOR_HOST/${env.HARBOR_HOST}/;s/NAMESPACE_NAME/${env.NAMESPACE_NAME}/;s/REPOSITORY_NAME/${env.REPOSITORY_NAME}/;s/TAG/${env.TAG}/" ${env.YAML_PATH} + kubectl apply -f ${env.YAML_PATH} """ }