Skip to content

Commit

Permalink
Jenkins DSL: Use sonar-task and sonar.token instead of sonar.login
Browse files Browse the repository at this point in the history
This removes some build-warnings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915908 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
centic9 committed Feb 20, 2024
1 parent b4a2bc0 commit b7bf336
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ subprojects {
//
// Some additional properties are currently set in the Jenkins-DSL, see jenkins/create_jobs.groovy
//
sonarqube {
sonar {
properties {
// as we currently use build/<module>/ as project-basedir, we need to tell Sonar to use
// the root-folder as "basedir" for the projects
Expand Down
8 changes: 4 additions & 4 deletions jenkins/create_jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ poijobs.each { poijob ->

gradle {
switches('-PenableSonar')
switches('-Dsonar.login=${POI_SONAR_TOKEN}')
switches('-Dsonar.token=${POI_SONAR_TOKEN}')
switches('-Dsonar.organization=apache')
switches('-Dsonar.projectKey=poi-parent')
switches('-Dsonar.host.url=https://sonarcloud.io')
Expand All @@ -377,7 +377,7 @@ poijobs.each { poijob ->
tasks('clean')
tasks('check')
tasks('jacocoTestReport')
tasks('sonarqube')
tasks('sonar')
useWrapper(true)
}
}
Expand Down Expand Up @@ -564,7 +564,7 @@ xmlbeansjobs.each { xjob ->
gradle {
if (xjob.sonar) {
switches('-PenableSonar')
switches('-Dsonar.login=${POI_SONAR_TOKEN}')
switches('-Dsonar.token=${POI_SONAR_TOKEN}')
switches('-Dsonar.organization=apache')
switches('-Dsonar.projectKey=apache_xmlbeans')
switches('-Dsonar.host.url=https://sonarcloud.io')
Expand All @@ -577,7 +577,7 @@ xmlbeansjobs.each { xjob ->
tasks('jenkins')
tasks('jacocoTestReport')
if (xjob.sonar) {
tasks('sonarqube')
tasks('sonar')
}
useWrapper(true)
}
Expand Down

0 comments on commit b7bf336

Please sign in to comment.