From aa7433c790cc9efcc34ef7399efac85a38f6c606 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 11 Sep 2024 17:01:05 +1000 Subject: [PATCH 1/2] use nexus remote cache rather than home made container Signed-off-by: Olivier Lamy --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 16c7c1a7a689..001c811cb058 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -125,11 +125,11 @@ def mavenBuild(jdk, cmdline, mvnName) { buildCache = useBuildCache() if (buildCache) { echo "Using build cache" - extraArgs = " -Dmaven.build.cache.restoreGeneratedSources=false -Dmaven.build.cache.remote.url=http://nginx-cache-service.jenkins.svc.cluster.local:80 -Dmaven.build.cache.remote.enabled=true -Dmaven.build.cache.remote.save.enabled=true -Dmaven.build.cache.remote.server.id=remote-build-cache-server -Daether.connector.http.supportWebDav=true " + extraArgs = " -Dmaven.build.cache.restoreGeneratedSources=false -Dmaven.build.cache.remote.url=http://nexus-service.nexus.svc.cluster.local:8081/repository/maven-build-cache -Dmaven.build.cache.remote.enabled=true -Dmaven.build.cache.remote.save.enabled=true -Dmaven.build.cache.remote.server.id=nexus-cred " } else { // when not using cache echo "Not using build cache" - extraArgs = " -Dmaven.test.failure.ignore=true -Dmaven.build.cache.skipCache=true -Dmaven.build.cache.remote.url=http://nginx-cache-service.jenkins.svc.cluster.local:80 -Dmaven.build.cache.remote.enabled=true -Dmaven.build.cache.remote.save.enabled=true -Dmaven.build.cache.remote.server.id=remote-build-cache-server -Daether.connector.http.supportWebDav=true " + extraArgs = " -Dmaven.test.failure.ignore=true -Dmaven.build.cache.skipCache=true -Dmaven.build.cache.remote.url=http://nexus-service.nexus.svc.cluster.local:8081/repository/maven-build-cache -Dmaven.build.cache.remote.enabled=true -Dmaven.build.cache.remote.save.enabled=true -Dmaven.build.cache.remote.server.id=nexus-cred " } if (env.BRANCH_NAME ==~ /PR-\d+/) { if (pullRequest.labels.contains("build-all-tests")) { From 54206d3f77a3728e50a77fe85868fdab1e16fa80 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 11 Sep 2024 20:12:50 +1000 Subject: [PATCH 2/2] fix comment Signed-off-by: Olivier Lamy --- .mvn/maven-build-cache-config.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.mvn/maven-build-cache-config.xml b/.mvn/maven-build-cache-config.xml index b0bd4f212d3f..47a12e818efa 100644 --- a/.mvn/maven-build-cache-config.xml +++ b/.mvn/maven-build-cache-config.xml @@ -6,11 +6,11 @@ - - + +