Skip build of dashboard docker image in Sonar job 38/2238/4
authorLott, Christopher (cl778h) <cl778h@att.com>
Wed, 15 Jan 2020 15:59:09 +0000 (10:59 -0500)
committerLott, Christopher (cl778h) <cl778h@att.com>
Wed, 15 Jan 2020 16:26:38 +0000 (11:26 -0500)
Drop the override mvn-goal of 'test' and add maven parameter to tell
the Fabric8 maven plugin to skip building the Docker image because
no image is needed for Sonar analysis.  Previously I used goal "test"
to stop the maven build before it reached the install phase that builds
a Docker, but that phase does not call the jacoco-maven-plugin reporter.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Iaa924b41eb6d0034bdfacddec490d096e38f0a32

jjb/portal-ric-dashboard/portal-ric-dashboard.yaml

index 8940287..7027048 100644 (file)
@@ -51,8 +51,9 @@
 - project:
     <<: *portal_ric_dashboard_common
     name: portal-ric-dashboard-sonar
-    mvn-goals: test
     branch: master
+    # template goal install builds image which is not needed
+    mvn-params: -Ddocker.skip=true
     sonarcloud: true
     sonarcloud-api-token: '{sonarcloud_api_token}'
     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'