From de15379ead426a510a9f77dcf3bae102d5f4a12f Mon Sep 17 00:00:00 2001 From: John Blum Date: Fri, 9 Jun 2023 13:00:24 -0700 Subject: [PATCH] Switch to using 'gradle clean build' for Jenkins CI piepline builds. --- Jenkinsfile | 5 ++--- ci/build.sh | 6 ++++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100755 ci/build.sh diff --git a/Jenkinsfile b/Jenkinsfile index 8d1cc24..ed394b0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" diff --git a/ci/build.sh b/ci/build.sh new file mode 100755 index 0000000..284bfaf --- /dev/null +++ b/ci/build.sh @@ -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