Skip to content
Permalink
Browse files
Use double quotes to resolve DOCKER_TAG
Signed-off-by: Mykola Mandra <mykola.mandra@cloudsoft.io>
  • Loading branch information
algairim committed Feb 21, 2022
1 parent e98500d commit 2b71571771d70c730898a2ee8250d38e0eba9ae3
Showing 2 changed files with 4 additions and 2 deletions.
@@ -41,7 +41,8 @@ node(label: 'ubuntu') {
sh 'mkdir -p ${WORKSPACE}/.m2'
sh 'docker logout' // needed because sometimes cached credentials break the following step (creds aren't needed)
echo 'Building docker image for test environment ...'
environmentDockerImage = docker.build('brooklyn:${DOCKER_TAG}')
echo "Using docker tag DOCKER_TAG=${DOCKER_TAG}" // double quotes to resolve env vars
environmentDockerImage = docker.build("brooklyn:${DOCKER_TAG}") // double quotes to resolve env vars
}

stage('Run tests') {
@@ -34,7 +34,8 @@ node(label: 'ubuntu') {
sh 'git submodule init'
sh 'git submodule update --remote --merge --recursive'
echo 'Building docker image for test environment ...'
environmentDockerImage = docker.build('brooklyn:${DOCKER_TAG}')
echo "Using docker tag DOCKER_TAG=${DOCKER_TAG}" // double quotes to resolve env vars
environmentDockerImage = docker.build("brooklyn:${DOCKER_TAG}") // double quotes to resolve env vars
}

stage('Run tests') {

0 comments on commit 2b71571

Please sign in to comment.