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:19:30 UTC

[brooklyn-server] 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-server.git


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

commit e803895b8b10ef4326512268bb6674b9386f5991
Author: Alex Heneveld <al...@cloudsoftcorp.com>
AuthorDate: Wed Sep 15 15:19:03 2021 +0100

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

diff --git a/Jenkinsfile b/Jenkinsfile
index 4b5a814..223b841 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -32,7 +32,6 @@ node(label: 'ubuntu') {
         def dockerTag = env.BUILD_TAG.replace('%2F', '-')
 
         withEnv(["DOCKER_TAG=${dockerTag}"]) {
-          docker.withRegistry('https://registry.hub.docker.com') {
             stage('Clone repository') {
                 checkout scm
             }
@@ -41,6 +40,7 @@ node(label: 'ubuntu') {
                 echo 'Creating maven cache ...'
                 sh 'mkdir -p ${WORKSPACE}/.m2'
                 echo 'Building docker image for test environment ...'
+                sh 'docker logout'
                 environmentDockerImage = docker.build('brooklyn:${DOCKER_TAG}')
             }
 
@@ -49,7 +49,6 @@ node(label: 'ubuntu') {
                     sh 'mvn clean install -Duser.home=/var/maven -Duser.name=jenkins'
                 }
             }
-          }
         }
     }