Run SBDG Gradle build in Jenkins CI inside the context of an authenticated DockerHub Registery block.
This should avoid the DockerHub rate limit problem currently affecting the build.
This commit is contained in:
44
Jenkinsfile
vendored
44
Jenkinsfile
vendored
@@ -26,30 +26,32 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
docker.image(p['docker.container.image.java.main']).inside(p['docker.container.inside.env.full']) {
|
||||
docker.withRegistry(p['docker.registry'], p['docker.credentials']) {
|
||||
docker.image(p['docker.container.image.java.main']).inside(p['docker.container.inside.env.full']) {
|
||||
|
||||
sh "echo 'Setup build environment...'"
|
||||
sh "ci/setup.sh"
|
||||
sh "echo 'Setup build environment...'"
|
||||
sh "ci/setup.sh"
|
||||
|
||||
// Cleanup any prior build system resources
|
||||
try {
|
||||
sh "echo 'Clean up GemFire/Geode files & build artifacts...'"
|
||||
sh "ci/cleanupGemFiles.sh"
|
||||
sh "ci/cleanupArtifacts.sh"
|
||||
}
|
||||
catch (ignore) { }
|
||||
// Cleanup any prior build system resources
|
||||
try {
|
||||
sh "echo 'Clean up GemFire/Geode files & build artifacts...'"
|
||||
sh "ci/cleanupGemFiles.sh"
|
||||
sh "ci/cleanupArtifacts.sh"
|
||||
}
|
||||
catch (ignore) { }
|
||||
|
||||
// Run the SBDG project Gradle build using JDK 8 inside Docker
|
||||
try {
|
||||
sh "echo 'Building SBDG...'"
|
||||
sh "ci/check.sh"
|
||||
}
|
||||
catch (e) {
|
||||
currentBuild.result = "FAILED: build"
|
||||
throw e
|
||||
}
|
||||
finally {
|
||||
junit '**/build/test-results/*/*.xml'
|
||||
// Run the SBDG project Gradle build using JDK 8 inside Docker
|
||||
try {
|
||||
sh "echo 'Building SBDG...'"
|
||||
sh "ci/check.sh"
|
||||
}
|
||||
catch (e) {
|
||||
currentBuild.result = "FAILED: build"
|
||||
throw e
|
||||
}
|
||||
finally {
|
||||
junit '**/build/test-results/*/*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user