diff --git a/Jenkinsfile b/Jenkinsfile index c93d1c53a5fc..ff0a5f309a85 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 @@ -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 """ } }