Add controller Sonar scan to Sonarcloud 28/85928/2
authorEric Ball <eball@linuxfoundation.org>
Wed, 6 Nov 2019 22:58:44 +0000 (15:58 -0700)
committerEric Ball <eball@linuxfoundation.org>
Thu, 21 Nov 2019 22:28:23 +0000 (14:28 -0800)
This adds controller-sonarcloud for parallel operation.

Issue: LF-Jira RELENG-2337
Change-Id: Id57fd13844a5956d8e9283467559e3690fcaaf1f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
jjb/controller/controller.yaml

index 543f84bcfc9f4bffee495b341c7a5a434b255ccf..8efe2f4ebde9b5a7c582224a0f926ce5315d5344 100644 (file)
     mvn-goals: 'clean deploy -Pintegrationtests,docs'
     mvn-opts: '-Xmx4096m -Dmaven.compile.fork=true'
 
+- project:
+    name: controller-sonarcloud
+    jobs:
+      - gerrit-maven-sonar:
+          mvn-params: >
+            -Dodl.jacoco.aggregateFile=$WORKSPACE/target/jacoco.exec
+            -Dsonar.jacoco.reportPath=$WORKSPACE/target/jacoco.exec
+
+    project: 'controller'
+    project-name: 'controller-sonarcloud'
+    branch: master
+    build-node: centos7-builder-8c-8g
+    java-version: 'openjdk11'
+    mvn-settings: 'controller-settings'
+    mvn-goals: 'clean deploy -Pintegrationtests,docs'
+    mvn-opts: '-Xmx4096m -Dmaven.compile.fork=true'
+    sonarcloud: true
+    sonarcloud-project-organization: '{sonarcloud_project_organization}'
+    sonarcloud-api-token: '{sonarcloud_api_token}'
+    sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
+
 - project:
     name: controller-view
     views: