From c519ffe69b50ed8440643155cd7f9a3a99ffe4ee Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Mon, 23 Mar 2020 19:09:08 -0500 Subject: [PATCH] #1228 - Fix CI scripts so they use maven caching. By having the JAVA_HOME path match the Jenkins volume mount point, maven caching should now work properly and speed up CI building and testing. --- ci/build.sh | 2 +- ci/test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/build.sh b/ci/build.sh index c7ec7289..619bebf6 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -2,4 +2,4 @@ set -euo pipefail -MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/spring-hateoas-maven-repository" ./mvnw -P${PROFILE} -Dmaven.test.skip=true clean deploy -B +MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -P${PROFILE} -Dmaven.test.skip=true clean deploy -B diff --git a/ci/test.sh b/ci/test.sh index 78d938aa..9effba2f 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -2,4 +2,4 @@ set -euo pipefail -MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/spring-hateoas-maven-repository" ./mvnw -P${PROFILE} clean dependency:list test -Dsort -B +MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -P${PROFILE} clean dependency:list test -Dsort -B