You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2021/09/15 14:25:33 UTC

[brooklyn-client] branch master updated: do a docker logout as part of jenkins build

This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-client.git


The following commit(s) were added to refs/heads/master by this push:
     new 1266c99  do a docker logout as part of jenkins build
1266c99 is described below

commit 1266c99c0b10c0cb33dd66053a9659ff212fe3c8
Author: Alex Heneveld <al...@cloudsoftcorp.com>
AuthorDate: Wed Sep 15 15:25:28 2021 +0100

    do a docker logout as part of jenkins build
    
        suggested this fixes problems with unauthorization
---
 Jenkinsfile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index a6e298d..82142d8 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -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}')
             }