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.
This commit is contained in:
John Blum
2021-04-12 15:34:40 -07:00
parent 9c56f7951b
commit da7c3fea6f

7
Jenkinsfile vendored
View File

@@ -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) {