remove branch name from name of cluster
* GKE has limit on lenght of cluster name, we need use shorter
names for our clusters
@@ -58,7 +58,7 @@ pipeline {
CLOUDSDK_CORE_DISABLE_PROMPTS = 1
GIT_SHORT_COMMIT = sh(script: 'git describe --always --dirty', , returnStdout: true).trim()
VERSION = "${env.GIT_BRANCH}-${env.GIT_SHORT_COMMIT}"
- CLUSTER_NAME = sh(script: "echo jenkins-pxc-${VERSION} | tr '[:upper:]' '[:lower:]'", , returnStdout: true).trim()
+ CLUSTER_NAME = sh(script: "echo jenkins-pxc-${GIT_SHORT_COMMIT} | tr '[:upper:]' '[:lower:]'", , returnStdout: true).trim()
}
agent {
label 'docker'
