Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
CI: Use global substitution to normalize the IMAGE_TAG
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerhut committed Aug 27, 2018
1 parent e562635 commit 20e97d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 20e97d8

Please sign in to comment.