You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2020/01/07 21:15:34 UTC

svn commit: r1872469 - in /poi/trunk: jenkins/create_jobs.groovy sonar/sonar-project.properties

Author: kiwiwings
Date: Tue Jan  7 21:15:33 2020
New Revision: 1872469

URL: http://svn.apache.org/viewvc?rev=1872469&view=rev
Log:
test if sonar can be configured via properties file
sonarcloud complained about jacoco native report paths

Added:
    poi/trunk/sonar/sonar-project.properties
Modified:
    poi/trunk/jenkins/create_jobs.groovy

Modified: poi/trunk/jenkins/create_jobs.groovy
URL: http://svn.apache.org/viewvc/poi/trunk/jenkins/create_jobs.groovy?rev=1872469&r1=1872468&r2=1872469&view=diff
==============================================================================
--- poi/trunk/jenkins/create_jobs.groovy (original)
+++ poi/trunk/jenkins/create_jobs.groovy Tue Jan  7 21:15:33 2020
@@ -3,7 +3,7 @@
 //
 // See https://github.com/jenkinsci/job-dsl-plugin/wiki for information about the DSL, you can
 // use http://job-dsl.herokuapp.com/ to validate the code before checkin
-// 
+//
 
 def triggerSundays = '''
 # only run this once per week on Sundays
@@ -294,10 +294,7 @@ poijobs.each { poijob ->
                 maven {
                     if (poijob.sonar) {
                         goals('clean package sonar:sonar')
-                        property('sonar.host.url', 'https://sonarcloud.io')
                         property('sonar.login', '${POI_SONAR_TOKEN}')
-                        property('sonar.projectKey', 'poi-parent')
-                        property('sonar.organization', 'apache')
                     } else {
                         goals('package')
                     }
@@ -367,10 +364,7 @@ poijobs.each { poijob ->
 
                 gradle {
                     switches('-PenableSonar')
-                    switches('-Dsonar.host.url=https://sonarcloud.io')
                     switches('-Dsonar.login=${POI_SONAR_TOKEN}')
-                    switches('-Dsonar.projectKey=poi-parent')
-                    switches('-Dsonar.organization=apache')
                     tasks('sonarqube')
                     useWrapper(false)
                 }

Added: poi/trunk/sonar/sonar-project.properties
URL: http://svn.apache.org/viewvc/poi/trunk/sonar/sonar-project.properties?rev=1872469&view=auto
==============================================================================
--- poi/trunk/sonar/sonar-project.properties (added)
+++ poi/trunk/sonar/sonar-project.properties Tue Jan  7 21:15:33 2020
@@ -0,0 +1,11 @@
+# Sonar configuration file:
+# see https://sonarcloud.io/documentation/analysis/scan/sonarscanner/
+# and https://sonarcloud.io/documentation/analysis/analysis-parameters/
+
+# Organization and project keys are displayed in the right sidebar of the project homepage
+sonar.organization=apache
+sonar.projectKey=poi-parent
+sonar.host.url=https://sonarcloud.io
+
+sonar.jacoco.reportPaths=target/jacoco.exec
+sonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org