From da7c3fea6fb3003fb27a7f01fdaa4df59be28657 Mon Sep 17 00:00:00 2001 From: John Blum Date: Mon, 12 Apr 2021 15:34:40 -0700 Subject: [PATCH] Login to Docker (Hub) prior to running the SBDG test suite. Specifically, login to Docker Hub prior to running the spring-geode tests, which use Testcontainers to fork a Cassandra server in a Docker container for Inline Caching Integration Tests. --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a5fd1174..23763140 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,8 +15,11 @@ try { node('linux') { checkout scm try { - withEnv(["JAVA_HOME=${tool 'jdk8'}"]) { - sh './gradlew clean check --no-daemon --refresh-dependencies --stacktrace' + withCredentials([usernamePassword(credentialsId: 'hub.docker.com-springbuildmaster', usernameVariable: 'DOCKER_HUB_USR', passwordVariable: 'DOCKER_HUB_PSW')]) { + withEnv(["JAVA_HOME=${tool 'jdk8'}"]) { + sh 'docker login --username $DOCKER_HUB_USR --password $DOCKER_HUB_PSW' + sh './gradlew clean check --no-daemon --refresh-dependencies --stacktrace' + } } } catch (e) {