Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Service downtime

Please fill a bug about your wish to call sonar analysis from maven. Frederic will help with the settings file.

Cheers,
Mikael


Le 17 août 2016 à 14:16, Lorenzo Bettini <lorenzo.bettini@xxxxxxxxx> a écrit :

On 17/08/2016 10:47, Mikaël Barbero wrote:

Le 3 août 2016 à 16:35, Lorenzo Bettini <lorenzo.bettini@xxxxxxxxx
<mailto:lorenzo.bettini@xxxxxxxxx>> a écrit :

On 28/07/2016 12:25, Frederic Gurr wrote:
My suggestion was to get this fixed in Hudson/Sonar plugin.

In the meantime, Mikael Barbero suggested that you don't need to use the
Sonar plugin to run an analysis.
According to
http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Maven
you can do it from Maven directly. The only thing that needs to be
changed to make this work is the .m2/settings.xml file.

Maybe I'm still missing something (Mikael is in CC): from what I
understand, we need to use the sonar plugin to run the analysis since
HIPP is configured with the correct user and password to access sonar,
and this is kept hidden to us.  In fact, I see this line when using the
sonar plugin in hudson (where the user and password are unknown to us
and kept hidden)

-Dsonar.jdbc.driver=com.mysql.jdbc.Driver
-Dsonar.jdbc.url="" class="">******** ******** -Dsonar.host.url="" href="http://sonar.eclipse.org:9000/sonar" class="">http://sonar.eclipse.org:9000/sonar

so how can I run the sonar analysis directly?

If you want to run the analysis straight from maven, we will add the
credentials to the maven settings, and this -D won't be needed anymore
as the sonar configuration will be retrieved from the settings file. 

Thank you Mickael for the answer,
then could you please handle this?

thanks again
Lorenzo



Again, if the problem is the plugin version, would that be possible to
downgrade that in HIPP?

I don't think it's possible. IIRC, we've upgraded the sonar plugin
because the old does not work with new version of Hudson...



-- 
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


Back to the top