From a0d80aab6bceb458c9ef7bff732cfc3da27c0ea0 Mon Sep 17 00:00:00 2001 From: "Lott, Christopher (cl778h)" Date: Wed, 15 Jan 2020 10:59:09 -0500 Subject: [PATCH] Skip build of dashboard docker image in Sonar job 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) Change-Id: Iaa924b41eb6d0034bdfacddec490d096e38f0a32 --- jjb/portal-ric-dashboard/portal-ric-dashboard.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jjb/portal-ric-dashboard/portal-ric-dashboard.yaml b/jjb/portal-ric-dashboard/portal-ric-dashboard.yaml index 89402874..70270485 100644 --- a/jjb/portal-ric-dashboard/portal-ric-dashboard.yaml +++ b/jjb/portal-ric-dashboard/portal-ric-dashboard.yaml @@ -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}' -- 2.16.6