Skip to content

Commit a3f1f1c

Browse files
authored
save to remove cache
1 parent a32ff1c commit a3f1f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pipeline {
5757
"PATH+MAVEN=${env.JAVA_HOME}/bin:${tool 'maven3'}/bin",
5858
"MAVEN_OPTS=-Xms2g -Xmx4g -Djava.awt.headless=true"]) {
5959
configFileProvider([configFile(fileId: 'oss-settings.xml', variable: 'GLOBAL_MVN_SETTINGS')]) {
60-
sh "mvn -ntp -s $GLOBAL_MVN_SETTINGS -V -B -U clean install -T2 -e -DskipTests -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=false -Dmaven.build.cache.remote.server.id=nexus-cred"
60+
sh "mvn -ntp -s $GLOBAL_MVN_SETTINGS -V -B -U clean install -T2 -e -DskipTests -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"
6161
script {
6262
if (JETTY_VERSION == "SNAPSHOT") {
6363
JETTY_VERSION = sh(script: "mvn -N help:evaluate -Dexpression=project.version -q -DforceStdout", returnStdout: true).trim()

0 commit comments

Comments
 (0)