From e6ec32153728e804bb3b931b6eca806919aa01d8 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 25 Apr 2022 16:20:59 +0100 Subject: [PATCH] ci: transform branch to allow the Google Labels naming --- .ci/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 6abab5abea..e0d4c6d9d5 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -98,7 +98,7 @@ pipeline { githubCheckNotify('PENDING') // we want to notify the upstream about the e2e the soonest stash allowEmpty: true, name: 'source', useDefaultExcludes: false setEnvVar("GO_VERSION", readFile("${env.WORKSPACE}/${env.BASE_DIR}/.go-version").trim()) - setEnvVar("LABELS_STRING", "buildURL=${env.BUILD_URL} gitSha=${env.GIT_BASE_COMMIT} build=${env.BUILD_ID} repo=${env.REPO} branch=${env.BRANCH_NAME.toLowerCase()} type=ci") + setEnvVar("LABELS_STRING", "buildURL=${env.BUILD_URL} gitSha=${env.GIT_BASE_COMMIT} build=${env.BUILD_ID} repo=${env.REPO} branch=${env.BRANCH_NAME.toLowerCase().replaceAll('[^a-z0-9-]', '-')} type=ci") checkSkipTests() } }