Switch Jenkins CI pipeline build to using Gradle clean build in ci/build.sh.

This commit is contained in:
John Blum
2023-05-13 14:19:46 -07:00
parent 5a766dfbaf
commit 6629bfc4e0
3 changed files with 9 additions and 3 deletions

4
Jenkinsfile vendored
View File

@@ -35,15 +35,15 @@ 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 SBDG...'"
sh "ci/check.sh"
sh "ci/build.sh"
}
catch (e) {
currentBuild.result = "FAILED: build"

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/boot/build-gradle-cache" \
./gradlew --no-daemon --refresh-dependencies --stacktrace clean build

View File

@@ -3,4 +3,4 @@
set -eou pipefail
GRADLE_OPTS="-Duser.name=jenkins -Djava.io.tmpdir=/tmp -Dgradle.user.home=/tmp/geode/boot/build-gradle-cache" \
./gradlew clean check --no-daemon --refresh-dependencies --stacktrace
./gradlew --no-daemon --refresh-dependencies --stacktrace clean check