From dc6fd2f988776adee08470de5befd731b6651216 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 2 Feb 2023 12:29:51 +0000 Subject: [PATCH] environment test --- Jenkinsfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e37ee24..7639bb4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -96,11 +96,7 @@ podTemplate( clusterName: env.K8s_CLUSTER_NAME]) { sh """ DEPLOY_DATE=$(date +"%Y-%m-%d %H:%M:%S") - sed -i.bak 's#__REGISTRY_URL__#'"${dockerRegistryUrl}"'#' ./.k8s/deployment.yaml - sed -i.bak 's#__IMAGE_NAME__#'"${env.CONTAINER_IMAGE_NAME}"'#' ./.k8s/deployment.yaml - sed -i.bak 's#__IMAGE_TAG__#'"${env.PROJECT_VERSION}"'#' ./.k8s/deployment.yaml - sed -i.bak 's#__DEPLOY_DATE__#'"${DEPLOY_DATE}"'#' ./.k8s/deployment.yaml - kubectl apply -f ./.k8s/deployment.yaml + sed -i -e 's*__REGISTRY_URL__*${dockerRegistryUrl}*g' ./.k8s/deployment.yaml """ } }