Skip to content

Commit

Permalink
Syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asolimando committed Jul 26, 2024
1 parent 5165fab commit 9a064cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ node('ubuntu') {
def COMMON_ARGS = """
build --no-parallel --no-daemon jacocoAggregateTestReport \
sonar -PenableJacoco -Porg.sonarqube.version=4.4.1.3373 \
-Dorg.gradle.jvmargs='${JVM_ARGS}'
-Dorg.gradle.jvmargs='${JVM_ARGS}' \
"""

if (env.BRANCH_NAME.startsWith("PR-")) {
def PR_ARGS = """
-Dsonar.pullrequest.branch=${CHANGE_BRANCH} \
-Dsonar.pullrequest.base=${CHANGE_TARGET} \
-Dsonar.pullrequest.key=${CHANGE_ID}
-Dsonar.pullrequest.key=${CHANGE_ID} \
"""
sh "./gradlew ${COMMON_ARGS} ${PR_ARGS} -Dsonar.token=${SONAR_TOKEN}"
} else {
Expand Down

0 comments on commit 9a064cf

Please sign in to comment.