Skip to content

Commit

Permalink
Disable spotless on tag (#484)
Browse files Browse the repository at this point in the history
Co-authored-by: Adrien Lecharpentier <[email protected]>
  • Loading branch information
lemeurherve and alecharp authored Mar 14, 2024
1 parent 5aa46de commit 37736f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand All @@ -30,7 +31,7 @@ pipeline {
-Dmaven.test.failure.ignore \
-Dcheckstyle.failOnViolation=false \
-Dspotbugs.failOnError=false
"""
'''
}
}
}
Expand Down

0 comments on commit 37736f9

Please sign in to comment.