Sonar periodic email reports - email

Is it possible to have Sonar sending periodic (To be more specific, weekly) reports by email? I need to have it analyzing as there are new builds, but report only weekly.
Currently i'm running sonar as a jenkins plugin set to analyze whether there is a new build.

I'm not sure if this is the report that you want to use but this is the way we have been using to test the report before looking at the commercial edition that has an email feature. We have been using the Sonar PDF Plugin at:
http://docs.codehaus.org/display/SONAR/PDF+Plugin
This generates a report of the metrics, violations, other details, and then puts these into a pdf which is generated after a sonar analysis. This pdf is located at a static link such as: SonarServer:9000/api/plugins/Pdfreport/getReport?resource=3955
You can then use Jenkins to send a weekly, biweekly, monthly, etc email with this link attached. It is a workaround to getting out metrics less often.

If you're talking about some digest feature, this is not possible yet.

You could also use the Sonar Web Service along with its Client:-
http://myvogonpoetry.com/wp/2013/02/21/using-the-sonar-rest-api-for-weekly-emails/
We use this too but a little differently. This should be perfect for you with an automated job that separately handles it.

Related

Is there a way to embed coverage from SonarQube into a Github project as an icon?

Is it possible to embed code coverage results (stored in SonarQube) into Github projects as one of those embeddable icon gadgets (not sure what their name is; it would be great if somebody to tell me that as well)...? I'm referring to the ones that show the build status, for example.
The only thing currently available is this under-development plugin, which was first discussed in this Google Group thread. Note that this project appears to be in its infancy.
EDIT
This plugin has since been released, and can be installed directly from the Update Center
EDIT 2
With SonarQube 7.1, badges become a native feature.
Using a plugin in no longer needed, as some new APIs are now added that will do what you want. You can use this snippet in your .md files:
[![SonarCloud Coverage](https://{domain}/api/project_badges/measure?project={projectName}&metric=coverage)](https://{domain}/component_measures/metric/coverage/list?id={projectName})
Note that you have to replace parameters inside {}s with your own values. If you are using on-premise version, the domain will be your own domain and if you are using cloud version, it will be sonarcloud.io.
Also note that this will work only for public projects. For private ones, I could not find any solution.
And finally as a side note, the metric parameter takes some values other than coverage and gives other fantastic badges that you may find helpful:
bugs, code_smells, coverage, duplicated_lines_density, ncloc, sqale_rating, alert_status, reliability_rating, security_rating, sqale_index, vulnerabilities

Email Notification unpredicted behaviour in sonarqube

This is about sonarqube 5.1 version
I have issue assign plugin and also subscribed to the emails in my profile page. I've done some erroneous SVN commits deliberately to check the email notification settings but it doesn't seem to work correctly. I receive emails sometimes but other times it doesn't work like that.
I know this is not a constructive enough question but I'm really stucked here after trying all the scenarios and going through the documentation.
Any insight would be highly appreciated.
You should uninstall this plugin. It is compatible, but it does not work correctly. The problem is that SonarQube 5.1 introduced core auto assignment (see automatic issue assignment and SONAR-5906). The core functionality & plugin execution order is as follows:
Plugin during the execution assigns issues & collects information to whom he should send e-mails. Next core functionality reassign issues.
Core functionality reassigns issues
Plugin sends emails with incorrect data
See topic on SonarQube mailing list
I am also using SQ 5.1 and Issue Assign plugin works perfectly fine without any issues. You should check your email notification settings.

Is it possible to specify aggregate code coverage testing when deploying with a list of tests to Salesforce

I am automating deployment and CI to our Salesforce orgs using Ant. In my build xml, I am specifying the complete list of our tests to run. Salesforce is returning code coverage errors, demanding 75% code coverage on a per file basis rather than allowing only 75% based on the total code base. Some of our old files do not have that level of coverage, and I am trying not to have to go back and create a ton of new tests for old software.
It seems like Salesforce is doing the code coverage based on the quickdeploy model, rather that the aggregate.
Does anyone know a way I can tell Salesforce not to use the quickdeploy model (if that is what it is doing). I have checked the Migration tool docs, but don't see anything.
Thanks...
Have you tried setting the attribute runAllTests="true" inside the sf:deploy tasks, rather than listing each test out?

Pentaho 5.0.1 Send scheduled reports in Email Body

How do I send scheduled email with reports within email body. The documention available is not for version 5.0.1 Community Edition. It appears I may have to use xaction (was hoping not) . However I do not know how to go about it? Help please
Pentaho Provides a sample xaction script (email_inventory_inline_HTML.xaction) that does this. Script is in directory:biserver-ce\pentaho-solutions\bi-developers\reporting\unified-file-format for older versions but under Public/Bi Developer Examples/Reporting/PRPT Samples .
I used the Design Studio to modify the xaction script to suit my needs. The Design Studio was not perfect so I had to recheck the generated xaction script for accuracy,
It work fine.
Here is the documentation for scheduling reports by email.
Please remmember it is the enterprise version (which is better documented) and some details might change in the community version.

Create Task Report from Mylyn?

is there a way to create a task/activity report (say a weekly report) off tasks managed with Mylyn? I've been using Rachota TimeTracker which allows me to create reports (in html format)
http://rachota.sourceforge.net/en/demo.html
I've just started using mylyn (our company uses Embarcadero JBuilder which is is based on Eclipse), but I don't see anywhere in the Eclipse or Embarcadero docs about reporting capabilities.
Is it possible? Is it possible to query activities worked on a prior week and report statistics out of it (management like reports, you know;) I'm sure it is, but I haven't been able to google it out.
Thanks.
You're in luck, Tasktop Pro (the supported version of Mylyn) has reporting. It allows you to:
View all task activity times for the previous day, week, and month
Manually adjust times as necessary to account for meetings and discussions
Submit your adjusted times, on tasks you select, to your task repository
Create reports in various formats
I'd recommend this short video which explains the reporting features in about 6 minutes.
David Shepherd
Tasktop Technologies
As you already know by now, the reporting functionality is included into commercial Tasktop product, which is developed by the same people who created Mylyn. So, obviously they are not interested to include some features into a free version. Now you have two options, either buy Tasktop, or develop your own extension for Mylyn. The task data is stored in reasonable simple xml file, so you not necessarily have to create an Eclipse plugin.
the reporting feature was stripped from the project when it used to be called mylar, in 2007, and since the project went commercial never came back to the open source mylyn for obvious reasons..
I found this simple perl script which outputs a pretty basic text only report, good enough for me.
http://rachaelandtom.info/mylyn-report
No takers? Not surprised since I can't find anything on the subject. For what's worth, there is an experimental task/activity report available for Mylyn with the sandbox jar. However, I could not get mine to work as I'm tied up with a JBuilder installation behind a firewall (and I can't download anything on the corp network that is not pre-evaluated... it sucks, I know.)
I'm going to have to experiment with the mylyn sandox at home, but it would be great if someone knows of an easier, more stable alternative.