Sonar analysis added to Honeycomb jobs 02/1302/6
authorTibor Frank <tifrank@cisco.com>
Mon, 30 May 2016 09:08:38 +0000 (11:08 +0200)
committerTibor Frank <tifrank@cisco.com>
Wed, 1 Jun 2016 14:15:52 +0000 (16:15 +0200)
The configuration is based on information from:
http://docs.openstack.org/infra/jenkins-job-builder/builders.html
and
http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins#AnalyzingwithSonarQubeScannerforJenkins-Job-levelConfiguration

This setting should be tested on the actual infrastructure.

Change-Id: I7416c84881d8cf36330f81318e178140dbce755b
Signed-off-by: Tibor Frank <tifrank@cisco.com>
jjb/honeycomb/honeycomb.yaml

index cfa9ae4..15b753d 100644 (file)
     maven:
         maven-name: '{mvn33}'
         root-pom: 'pom.xml'
-        goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Dkaraf.keep.unpack=true'
+        goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Dkaraf.keep.unpack=true -Dsonar'
         maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
         settings: 'honeycomb-settings'
         settings-type: cfp
         - findbugs
 
     publishers:
+        - sonar:
+            language: 'java'
         - email-notification:
             email-prefix: '[honeycomb]'
         - maven-deploy:
     maven:
         maven-name: '{mvn33}'
         root-pom: 'pom.xml'
-        goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Dkaraf.keep.unpack=true'
+        goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Dkaraf.keep.unpack=true -Dsonar'
         maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
         settings: 'honeycomb-settings'
         settings-type: cfp
         - findbugs
 
     publishers:
+        - sonar:
+            language: 'java'
         - email-notification:
             email-prefix: '[honeycomb]'
         - maven-deploy: