Skip to content
Permalink
Browse files
do a docker logout as part of jenkins build
    suggested this fixes problems with unauthorization
  • Loading branch information
ahgittin committed Sep 15, 2021
1 parent a6c89af commit 1266c99c0b10c0cb33dd66053a9659ff212fe3c8
Showing 1 changed file with 1 addition and 0 deletions.
@@ -39,6 +39,7 @@ node(label: 'ubuntu') {
stage('Prepare environment') {
echo 'Creating maven cache ...'
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}')
}

0 comments on commit 1266c99

Please sign in to comment.