From 20e97d80c27d2b2bfe089eea59d96981ff61ad71 Mon Sep 17 00:00:00 2001 From: Qixiang Cheng Date: Mon, 27 Aug 2018 13:13:55 +0800 Subject: [PATCH] CI: Use global substitution to normalize the IMAGE_TAG --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2b8f08341d..5405dabb54 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,7 @@ echo ${labels[0]} > ${WORKSPACE}/BED.txt sh '''#!/bin/bash set -ex -echo ${GIT_BRANCH/\\//-}-$(git rev-parse --short HEAD)-${BUILD_ID} > ${WORKSPACE}/IMAGE_TAG.txt +echo ${GIT_BRANCH//\\//-}-$(git rev-parse --short HEAD)-${BUILD_ID} > ${WORKSPACE}/IMAGE_TAG.txt ''' env.IMAGE_TAG = readFile("${WORKSPACE}/IMAGE_TAG.txt").trim() echo "Image tag: ${IMAGE_TAG}"