From 58dd17a87744a0df6ecfda2eddd0ae16a2963af3 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Mon, 30 May 2016 11:08:38 +0200 Subject: [PATCH] Sonar analysis added to Honeycomb jobs 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 --- jjb/honeycomb/honeycomb.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jjb/honeycomb/honeycomb.yaml b/jjb/honeycomb/honeycomb.yaml index cfa9ae4f4..15b753d4c 100644 --- a/jjb/honeycomb/honeycomb.yaml +++ b/jjb/honeycomb/honeycomb.yaml @@ -182,7 +182,7 @@ 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 @@ -197,6 +197,8 @@ - findbugs publishers: + - sonar: + language: 'java' - email-notification: email-prefix: '[honeycomb]' - maven-deploy: @@ -246,7 +248,7 @@ 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 @@ -261,6 +263,8 @@ - findbugs publishers: + - sonar: + language: 'java' - email-notification: email-prefix: '[honeycomb]' - maven-deploy: -- 2.16.6