What are the sbt commands to integrate with sonarqube? - sonarqube

I want to check the code of sbt using sonarqube, can anyone assist me in that.

Related

How to upgrade sonarqube through zip file

I'm using sonarqube for AEM. But when I run mvn sonar:sonar on any module, it shows an error and the project analysis results in failure. Attaching the screenshot for that
I tried upgrading sonarqube too. But I'm not able to do that. Steps mentioned in the sonarqube docs are not quite understandable. Please let me know if there is any solution for this.
Tried upgrading the sonarqube but not able to do that. If that could solve my problem, suggest me how to do that.

How do I use Sonar Plugin with Hudson?

I want to use SonarQube for Code Quality analysis. I have Hudson as the CI tool and have integrated clearcase. How do I use SonarQube when the Ant build happens? Do I need to install SonarQube in a server and use a plugin to access it?
Can someone help me?
Install SonarQube web server as a first step. Default port will be localhost:9000.
After installing SonarQube you need to create an Ant target. Sample Script is available on GitHub. If Hudson is working correctly earlier. It will pick up the changes in Ant Script and perform the Analysis. After the completion of Analysis report will be generated and accessible at SonarQube Web Dashboard.

Issue Report Plugin not working in SonarQube 5.6.1

This is how i execute my sonar analysis,
mvn sonar:sonar -Dsonar.issuesReport.html.enable=true
In Sonar 4.0 i was able to generate HTML reports, But in SonarWube 5.6.1 its not working out (No errors thrown)
I have googled a lot and couldn't find an alternate plugin or any fix for this.
If some one can suggest me, that will be helpful
Take a look at SonarLint for Command Line. The functionality was moved there.
EDIT SonarLint for Command Line has been dropped. The recommendation is now to use SonarLint in your IDE or Branch Analysis, which is available in Developer Edition($)

jenkins enable maven command line

I want to setup jenkins using the command-line only. I am successfully able to install plugins and configure jobs. So i've installed the maven-plugin using jenkins-cli but want to be able to configure it to say "Automatically install maven latest version" so that when the user triggers a build it will automatically go download maven and then use it just like it does using the GUI.
Any advice on how i can do this piece of configuration on the command-line (or scripted ideally) please?
This option is not and should never be available for the reason that it destroys the concept of reproducible builds.
Changing the maven version deliberately may break the build at some future time for no apparent reason and will definitely startle your users then.
Please avoid this situation.
Why not use maven wrapper instead, this way each project configures specifically which version of maven it needs and automatically downloads it.
https://github.com/takari/maven-wrapper
https://github.com/takari/maven-wrapper/blob/master/README.md

How can I integrate Jenkins with Redmine?

I would like to integrate Jenkins with Redmine. If some build breaks, Jenkins would open an issue in Redmine to notify it with the console output.
How can I do it? Are there any plugins? Are there any implementation guides? I couldn't find a solution yet.
There are two ways to achieve this
install hudson plugin inside redmine, see http://www.redmine.org/plugins/t-ando_redmine_hudson , it will let you know the build inside redmine. (**2014.5.7 [Updated] change to redmine plugin list **)
install redmine plugin inside jenkins (hudson), unfortunately the plugin is not maintained any more, https://wiki.jenkins-ci.org/display/JENKINS/Redmine+Plugin . And JIRA jenkins plugin is a way how redmine plugin should be supported.
([Updated] the plugin is back since 2013)
[updated] I tried to add this functions for solution 2 in 2011.2, see my blog: http://larrycaiyu.com/blog/2011/02/24/associate-ci-build-information-in-redmine-issue-by-using-redmine-rest-api/, but I stopped after that, because
In the community, it seems solution 1 is preferred.
lots of functions are already inside JIRA, it is better to persuade them to make it as a common issue plugin inside jenkins.
You can try the e-mail-to-issue option in Redmine.
Configure Jenkins to send an e-mail to Redmine with detailed report.
Configure Redmine to accept the e-mail and transfer it to the issue.
You can configure whatever template you wish so the reports will be user-friendly. Further more Redmine has a simple incoming mail parser so that you can omit info you don't need.
No plugins needed, only settings in both tools.

Resources