Skip to content

Commit

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

Expand All @@ -67,7 +66,7 @@ node('ubuntu') {
// to avoid problems with Groovy's interpolation for secrets
withEnv(["SONAR_TOKEN=${SONAR_TOKEN}"]) {
sh """
./gradlew ${FULL_COMMAND}
./gradlew ${FULL_COMMAND} -Dsonar.token=\$SONAR_TOKEN
"""
}
}
Expand Down

0 comments on commit 3ddec92

Please sign in to comment.