From 426a41dcc9a3bfbc9d5ea1d917adb87c3fa5abe1 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Fri, 7 Jan 2022 17:59:20 +0100 Subject: [PATCH] (chores) CI: avoid force updating snapshots for non-compiling steps --- Jenkinsfile | 6 +++--- Jenkinsfile.jdk17 | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 685e79bf8c19a..b8d6716004737 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ def AGENT_LABEL = env.AGENT_LABEL ?: 'ubuntu' def JDK_NAME = env.JDK_NAME ?: 'jdk_11_latest' -def MAVEN_PARAMS = "-U -B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2" +def MAVEN_PARAMS = "-B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2" pipeline { @@ -63,7 +63,7 @@ pipeline { branch 'main' } steps { - sh "./mvnw $MAVEN_PARAMS -Dmaven.test.skip.exec=true clean deploy" + sh "./mvnw -U $MAVEN_PARAMS -Dmaven.test.skip.exec=true clean deploy" } } @@ -76,7 +76,7 @@ pipeline { stage('Code Quality Review') { steps { withCredentials([string(credentialsId: 'apache-camel-core', variable: 'SONAR_TOKEN')]) { - sh "./mvnw $MAVEN_PARAMS -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_camel org.sonarsource.scanner.maven:sonar-maven-plugin:sonar" + sh "./mvnw $MAVEN_PARAMS -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_camel org.sonarsource.scanner.maven:sonar-maven-plugin:sonar" } } } diff --git a/Jenkinsfile.jdk17 b/Jenkinsfile.jdk17 index 0e6211ea0784b..6c07a28ea5fe9 100644 --- a/Jenkinsfile.jdk17 +++ b/Jenkinsfile.jdk17 @@ -20,7 +20,7 @@ def AGENT_LABEL = env.AGENT_LABEL ?: 'ubuntu' def JDK_NAME = env.JDK_NAME ?: 'jdk_17_latest' -def MAVEN_PARAMS = "-U -B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2" +def MAVEN_PARAMS = "-B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2" pipeline { @@ -63,7 +63,7 @@ pipeline { branch 'main' } steps { - sh "./mvnw $MAVEN_PARAMS -Darchetype.test.skip -Dmaven.test.skip.exec=true clean install" + sh "./mvnw -U $MAVEN_PARAMS -Darchetype.test.skip -Dmaven.test.skip.exec=true clean install" } }