Setup Spring Artifactory Repository authentication for the main build.

This commit is contained in:
John Blum
2023-05-31 11:07:32 -07:00
parent c45eeefb89
commit 181e3eecef

43
Jenkinsfile vendored
View File

@@ -30,29 +30,30 @@ pipeline {
steps {
script {
docker.image(p['docker.container.image.java.main']).inside(p['docker.container.inside.env.full']) {
withCredentials([usernamePassword(credentialsId: p['artifactory.credentials'], usernameVariable: 'ARTIFACTORY_USERNAME', passwordVariable: 'ARTIFACTORY_PASSWORD')]) {
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/cleanupArtifacts.sh"
sh "ci/cleanupGemFiles.sh"
}
catch (ignore) { }
// Cleanup any prior build system resources
try {
sh "echo 'Clean up GemFire/Geode files & build artifacts...'"
sh "ci/cleanupArtifacts.sh"
sh "ci/cleanupGemFiles.sh"
}
catch (ignore) { }
// Run the SBDG project Gradle build using JDK 8 inside Docker
try {
sh "echo 'Building SBDG...'"
sh "ci/build.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/build.sh"
}
catch (e) {
currentBuild.result = "FAILED: build"
throw e
}
finally {
junit '**/build/test-results/*/*.xml'
}
}
}
}