environment test
This commit is contained in:
parent
5c22b79f1e
commit
51c7147655
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
|
@ -94,15 +94,14 @@ podTemplate(
|
|||
serverUrl: env.K8s_SERVER_URL,
|
||||
contextName: env.K8s_CONTEXT_NAME,
|
||||
clusterName: env.K8s_CLUSTER_NAME]) {
|
||||
println "CONTAINER_IMAGE_NAME : ${env.CONTAINER_IMAGE_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
|
||||
// """
|
||||
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
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user