if build-all-tests label use -Dmaven.test.failure.ignore=true

Signed-off-by: Olivier Lamy <olamy@apache.org>
This commit is contained in:
Olivier Lamy 2023-08-24 11:46:13 +10:00 committed by Ludovic Orban
parent 44aa6036b3
commit 45b6523d13
1 changed files with 3 additions and 0 deletions

3
Jenkinsfile vendored
View File

@ -118,6 +118,9 @@ 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 "
}
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"
}
}