Switch Jenkins CI pipeline build to 'gradlew clean build'.

This commit is contained in:
John Blum
2023-06-09 16:36:23 -07:00
parent fe64968106
commit 2debef5e81
2 changed files with 12 additions and 7 deletions

13
Jenkinsfile vendored
View File

@@ -33,20 +33,19 @@ pipeline {
// Cleanup any prior build system resources
try {
sh "echo 'Clean up GemFire/Geode files & build artifacts...'"
sh "ci/cleanupGemFiles.sh"
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 SSDG...'"
sh "ci/check.sh"
sh "ci/build.sh"
}
catch (e) {
catch (cause) {
currentBuild.result = "FAILED: build"
throw e
throw cause
}
finally {
junit '**/build/test-results/*/*.xml'
@@ -64,9 +63,9 @@ pipeline {
try {
sh "ci/deployDocs.sh"
}
catch (e) {
catch (cause) {
currentBuild.result = "FAILED: deploy docs"
throw e
throw cause
}
}
}

6
ci/build.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash -x
set -eou pipefail
GRADLE_OPTS="-Duser.name=jenkins -Djava.io.tmpdir=/tmp -Dgradle.user.home=/tmp/geode/session/build-gradle-cache" \
./gradlew --no-daemon --refresh-dependencies --stacktrace clean build