Switch Jenkins CI pipeline build to using Gradle clean build in ci/build.sh.
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -35,15 +35,15 @@ pipeline {
|
|||||||
// Cleanup any prior build system resources
|
// Cleanup any prior build system resources
|
||||||
try {
|
try {
|
||||||
sh "echo 'Clean up GemFire/Geode files & build artifacts...'"
|
sh "echo 'Clean up GemFire/Geode files & build artifacts...'"
|
||||||
sh "ci/cleanupGemFiles.sh"
|
|
||||||
sh "ci/cleanupArtifacts.sh"
|
sh "ci/cleanupArtifacts.sh"
|
||||||
|
sh "ci/cleanupGemFiles.sh"
|
||||||
}
|
}
|
||||||
catch (ignore) { }
|
catch (ignore) { }
|
||||||
|
|
||||||
// Run the SBDG project Gradle build using JDK 8 inside Docker
|
// Run the SBDG project Gradle build using JDK 8 inside Docker
|
||||||
try {
|
try {
|
||||||
sh "echo 'Building SBDG...'"
|
sh "echo 'Building SBDG...'"
|
||||||
sh "ci/check.sh"
|
sh "ci/build.sh"
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
currentBuild.result = "FAILED: build"
|
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 -Djava.io.tmpdir=/tmp -Dgradle.user.home=/tmp/geode/boot/build-gradle-cache" \
|
||||||
|
./gradlew --no-daemon --refresh-dependencies --stacktrace clean build
|
||||||
@@ -3,4 +3,4 @@
|
|||||||
set -eou pipefail
|
set -eou pipefail
|
||||||
|
|
||||||
GRADLE_OPTS="-Duser.name=jenkins -Djava.io.tmpdir=/tmp -Dgradle.user.home=/tmp/geode/boot/build-gradle-cache" \
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user