Allow SONAR_MAVEN_GOAL to be configurable 72/8172/5
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 28 Dec 2017 01:48:36 +0000 (20:48 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 28 Dec 2017 02:40:13 +0000 (21:40 -0500)
commit5ffdf16ad97cb83038320301062221c990f283c8
treeb4e35c0ce46dfb85767eed5258269038fa865981
parent743eab353a2412ea2b52d7555bf50b1f95041ba3
Allow SONAR_MAVEN_GOAL to be configurable

Per reports on the mailing list Sonar jobs are broken in OpenDaylight.
This is because Sonar release a new plugin which only works with newer
versions of Sonar so until we can upgrade we need to allow flexibility
to configure the Sonar job to override the default sonar:sonar goal.

With this patch it is now possible to override the Sonar goal in JJB
and force an older version of the Sonar plugin to run using a JJB
defaults config or projects variable like this:

  sonar-mvn-goal: org.codehaus.mojo:sonar-maven-plugin:3.3.0.603:sonar

Unfortunately due to the defaults priority of JJB since we are
defining the sonar-mvn-goal parameter inside of the job template it
can only be overrided via a project section.

Reports:
https://lists.opendaylight.org/pipermail/release/2017-December/013119.html
https://lists.opendaylight.org/pipermail/release/2017-December/013223.html

Change-Id: I04512613f39e7c328e0f2f18d9c4729667e86909
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.jjb-test/expected-xml/gerrit-maven-sonar
.jjb-test/expected-xml/github-maven-sonar
jjb/lf-maven-jobs.yaml