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-library.git
The following commit(s) were added to refs/heads/master by this push:
new 65372b8 do a docker logout as part of jenkins build
new c9b6009 Merge branch 'master' of
https://gitbox.apache.org/repos/asf/brooklyn-library
65372b8 is described below
commit 65372b8f760f35cf3cf2de3591f69461285a1a52
Author: Alex Heneveld <[email protected]>
AuthorDate: Wed Sep 15 15:37:53 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 7fe54bb..d10ad06 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}')
}