environment test

This commit is contained in:
crusader 2023-02-02 12:29:51 +00:00
parent 51c7147655
commit dc6fd2f988

6
Jenkinsfile vendored
View File

@ -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
"""
}
}