Skip to content

Commit

Permalink
need to be in a PR to use pullRequest field (#10430)
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <[email protected]>
  • Loading branch information
olamy authored Aug 29, 2023
1 parent d6a0226 commit 7b13687
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ def mavenBuild(jdk, cmdline, mvnName) {
echo "Not using build cache"
extraArgs = " -Dmaven.test.failure.ignore=true -Dmaven.build.cache.enabled=false "
}
if (pullRequest.labels.contains("build-all-tests")) {
extraArgs = " -Dmaven.test.failure.ignore=true "
if (env.BRANCH_NAME ==~ /PR-\d+/) {
if (pullRequest.labels.contains("build-all-tests")) {
extraArgs = " -Dmaven.test.failure.ignore=true "
}
}
sh "mvn $extraArgs -DsettingsPath=$GLOBAL_MVN_SETTINGS -Dmaven.repo.uri=http://nexus-service.nexus.svc.cluster.local:8081/repository/maven-public/ -ntp -s $GLOBAL_MVN_SETTINGS -Dmaven.repo.local=.repository -Pci -V -B -e -U $cmdline"
}
Expand Down

0 comments on commit 7b13687

Please sign in to comment.