Fix sonar jobs due to freestyle transition
The freestyle job migration from patch
I810316417769df3c4f3f775aff3f3c151be76e3f broke the sonar jobs due to
missing jdk and maven-version configuration. Unfortunately JJB does not
support configuration those options either.
Since the post build step for Sonar is deprecated anyway there's no
point continuing to use it so transition to using the sonar method
recommended by SonarQube [0].
The "Prepare SonarQube Scanner environment" is currently not
configurable via Jenkins so explicitly set the Maven Goals directly to
work around this. We should switch back in the future once JJB supports
the setting.
[0]
http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
Change-Id: I6a3e00c4b385adad03a470d3aae0e476c6bb769d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>