Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSaini101 committed Mar 28, 2024
1 parent 6a9b550 commit 04efbb3
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@ pipeline {
infra.withArtifactCachingProxy() {
def OPTS = env.MAVEN_SETTINGS ? "-s ${MAVEN_SETTINGS}" : ''
OPTS += env.TAG_NAME ? ' -Dspotless.check.skip=true' : ''
sh '''
./mvnw -V \
--no-transfer-progress \
${OPTS} \
verify \
checkstyle:checkstyle \
spotbugs:spotbugs \
-Dmaven.test.failure.ignore \
-Dcheckstyle.failOnViolation=false \
-Dspotbugs.failOnError=false
'''
withEnv(["OPTS=${OPTS}"]) {
sh '''
./mvnw -V \
--no-transfer-progress \
${OPTS} \
verify \
checkstyle:checkstyle \
spotbugs:spotbugs \
-Dmaven.test.failure.ignore \
-Dcheckstyle.failOnViolation=false \
-Dspotbugs.failOnError=false
'''
}
}
}
}
Expand Down

0 comments on commit 04efbb3

Please sign in to comment.