Skip to content

Commit

Permalink
Use sonar.token instead of sonar.login in Jenkinsfile
Browse files Browse the repository at this point in the history
To avoid this warning:

[WARNING] The property 'sonar.login' is deprecated and will be removed in the future. Please use the 'sonar.token' property instead when passing a token.
  • Loading branch information
yrodiere committed Aug 25, 2023
1 parent 3a5c6a6 commit 779d735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ stage('Default build') {
mvn sonar:sonar \
-Dsonar.organization=\${SONARCLOUD_ORGANIZATION} \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=\${SONARCLOUD_TOKEN} \
-Dsonar.token=\${SONARCLOUD_TOKEN} \
${helper.scmSource.pullRequest ? """ \
-Dsonar.pullrequest.branch=${helper.scmSource.branch.name} \
-Dsonar.pullrequest.key=${helper.scmSource.pullRequest.id} \
Expand Down

0 comments on commit 779d735

Please sign in to comment.