From 766d2d08eba5d78e8cae30efcbb422d3424642d2 Mon Sep 17 00:00:00 2001 From: John Blum Date: Mon, 5 Apr 2021 16:50:05 -0700 Subject: [PATCH] Define 'DOCKER_HUB' (build) environment variable to access the credentials (username/password) required to login to Docker. --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 4da90bee..304fbb9a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,6 +22,9 @@ pipeline { stages { stage('Build') { + environment { + DOCKER_HUB = credentials('hub.docker.com-springbuildmaster') + } options { timeout(time: 15, unit: "MINUTES") } @@ -32,6 +35,7 @@ pipeline { // Cleanup any prior build system resources try { + sh "echo 'Cleaning up build artifacts & old GemFire/Geode files...'" sh "ci/cleanupGemFiles.sh" sh "ci/cleanupArtifacts.sh" }