From 37736f9851504215509a20ff2e6af497f9b28be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= <91831478+lemeurherve@users.noreply.github.com> Date: Thu, 14 Mar 2024 14:43:30 +0100 Subject: [PATCH] Disable spotless on tag (#484) Co-authored-by: Adrien Lecharpentier --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 587f017cf..b35babd53 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,8 @@ pipeline { script { infra.withArtifactCachingProxy() { def OPTS = env.MAVEN_SETTINGS ? "-s ${MAVEN_SETTINGS}" : '' - sh """ + OPTS += env.TAG_NAME ? ' -Dspotless.check.skip=true' : '' + sh ''' ./mvnw -V \ --no-transfer-progress \ ${OPTS} \ @@ -30,7 +31,7 @@ pipeline { -Dmaven.test.failure.ignore \ -Dcheckstyle.failOnViolation=false \ -Dspotbugs.failOnError=false - """ + ''' } } }