Switch to using 'gradle clean build' for Jenkins CI piepline builds.
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -33,16 +33,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 SSDG...'"
|
||||
sh "ci/check.sh"
|
||||
sh "ci/build.sh"
|
||||
}
|
||||
catch (e) {
|
||||
currentBuild.result = "FAILED: build"
|
||||
|
||||
6
ci/build.sh
Executable file
6
ci/build.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
set -eou pipefail
|
||||
|
||||
GRADLE_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home -Djava.io.tmpdir=/tmp" \
|
||||
./gradlew --no-daemon --refresh-dependencies --stacktrace clean build
|
||||
Reference in New Issue
Block a user