Here is a brief description of what we are doing and what we are looking for.
We have setup a Jenkins Job to
Everything is working fine so far, till we want to summarize and aggregate the reports produced by these various tools. What we want to have as output after the job completion would be an automatically generated email with following data:
As you see, all the needed data is somehow available and can be displayed in Jenkins. But it is scattered over different locations and is present in different formats. Some reports are even generated on the fly by the corresponding plugins.
The big question now is how to get this data easily to generate a readable high level email. Is there a way to access this data directly without parsing some xml or html sources or other hacks which would be not necessarily accurate, hardly maintainable and not so trivial to implement? Does Clover posts the summary data to some environment variables which can be accessed directly from Jenkins (to put them into the ext-email plugin, for example)?
Any help would be highly appreciated.
Regarding Clover part:
You could add the "execute shell" build step with a following command:
java -cp /path/to/clover-X.X.X.jar com.cenqua.clover.reporters.console.ConsoleReporter -i /path/to/clover.db > /path/to/outputfile.txt
This will produce a short summary like one below:
Clover Version 3.1.5, built on April 25 2012 (build-856)
Coverage Overview -
Methods: 7/7 (100%)
Statements: 10/10 (100%)
Branches: 0/0 ( - )
Avg Method: 1.0
Note that clover.license must be present in the same directory where clover-X.X.X.jar is located or passed as a system property, for example:
java -Dclover.license.path=/path/to/clover.license -cp [...]
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs