mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Jenkins DSL: Use sonar-task and sonar.token instead of sonar.login
This removes some build-warnings git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b4a2bc084e
commit
b7bf336453
@ -468,7 +468,7 @@ subprojects {
|
|||||||
//
|
//
|
||||||
// Some additional properties are currently set in the Jenkins-DSL, see jenkins/create_jobs.groovy
|
// Some additional properties are currently set in the Jenkins-DSL, see jenkins/create_jobs.groovy
|
||||||
//
|
//
|
||||||
sonarqube {
|
sonar {
|
||||||
properties {
|
properties {
|
||||||
// as we currently use build/<module>/ as project-basedir, we need to tell Sonar to use
|
// as we currently use build/<module>/ as project-basedir, we need to tell Sonar to use
|
||||||
// the root-folder as "basedir" for the projects
|
// the root-folder as "basedir" for the projects
|
||||||
|
|||||||
@ -366,7 +366,7 @@ poijobs.each { poijob ->
|
|||||||
|
|
||||||
gradle {
|
gradle {
|
||||||
switches('-PenableSonar')
|
switches('-PenableSonar')
|
||||||
switches('-Dsonar.login=${POI_SONAR_TOKEN}')
|
switches('-Dsonar.token=${POI_SONAR_TOKEN}')
|
||||||
switches('-Dsonar.organization=apache')
|
switches('-Dsonar.organization=apache')
|
||||||
switches('-Dsonar.projectKey=poi-parent')
|
switches('-Dsonar.projectKey=poi-parent')
|
||||||
switches('-Dsonar.host.url=https://sonarcloud.io')
|
switches('-Dsonar.host.url=https://sonarcloud.io')
|
||||||
@ -377,7 +377,7 @@ poijobs.each { poijob ->
|
|||||||
tasks('clean')
|
tasks('clean')
|
||||||
tasks('check')
|
tasks('check')
|
||||||
tasks('jacocoTestReport')
|
tasks('jacocoTestReport')
|
||||||
tasks('sonarqube')
|
tasks('sonar')
|
||||||
useWrapper(true)
|
useWrapper(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -564,7 +564,7 @@ xmlbeansjobs.each { xjob ->
|
|||||||
gradle {
|
gradle {
|
||||||
if (xjob.sonar) {
|
if (xjob.sonar) {
|
||||||
switches('-PenableSonar')
|
switches('-PenableSonar')
|
||||||
switches('-Dsonar.login=${POI_SONAR_TOKEN}')
|
switches('-Dsonar.token=${POI_SONAR_TOKEN}')
|
||||||
switches('-Dsonar.organization=apache')
|
switches('-Dsonar.organization=apache')
|
||||||
switches('-Dsonar.projectKey=apache_xmlbeans')
|
switches('-Dsonar.projectKey=apache_xmlbeans')
|
||||||
switches('-Dsonar.host.url=https://sonarcloud.io')
|
switches('-Dsonar.host.url=https://sonarcloud.io')
|
||||||
@ -577,7 +577,7 @@ xmlbeansjobs.each { xjob ->
|
|||||||
tasks('jenkins')
|
tasks('jenkins')
|
||||||
tasks('jacocoTestReport')
|
tasks('jacocoTestReport')
|
||||||
if (xjob.sonar) {
|
if (xjob.sonar) {
|
||||||
tasks('sonarqube')
|
tasks('sonar')
|
||||||
}
|
}
|
||||||
useWrapper(true)
|
useWrapper(true)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user