Skip to content

Commit

Permalink
(chores) CI: avoid force updating snapshots for non-compiling steps
Browse files Browse the repository at this point in the history
  • Loading branch information
orpiske committed Jan 7, 2022
1 parent b4bcc06 commit 426a41d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Expand Up @@ -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 {

Expand Down Expand Up @@ -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"
}
}

Expand All @@ -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"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Jenkinsfile.jdk17
Expand Up @@ -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 {

Expand Down Expand Up @@ -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"
}
}

Expand Down

0 comments on commit 426a41d

Please sign in to comment.