Define 'DOCKER_HUB' (build) environment variable to access the credentials (username/password) required to login to Docker.
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user