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:
John Blum
2023-05-13 14:13:26 -07:00
parent 13b53b68e2
commit 5a766dfbaf

44
Jenkinsfile vendored
View File

@@ -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'
}
}
}
}