Are there any useful plugins for source code metrics for Hudson/Jenkins?
I'm looking for total lines of code, total number of tests, classes, etc. with graphing.
Does anything like this exist?
There is no such difference between Hudson and Jenkins. Jenkins is actually the renamed version of Hudson. After disagreements between Oracle and Hudson creators, the latter decided that Hudson was to be forked and Jenkins CI.
Hudson is a discontinued continuous integration (CI) tool written in Java, which runs in a servlet container such as Apache Tomcat or the GlassFish application server.
Hudson is a Java-based open source Continuous Integration tool. Like any other Continuous Integration tool, Hudson provides the teams to trigger builds and tests with any change in the Source Control Management System. Hudson supports a large range of tools and plugins.
Hudson is a popular web-based continuous integration server, written in Java. Hudson is used in 17.000+ server installations worldwide in small, medium and large companies alike, including eBay, Hewlett-Packard, MySQL, JBoss, Xerox, Yahoo, LinkedIn, or Goldman-Sachs.
Our Maven demonstration project is already configured to record code coverage metrics, so all we need to do is to install the Jenkins Cobertura plugin and generate the code coverage metrics for Jenkins to record and display. Figure 2.27. Jenkins has a large range of plugins available
Jenkins - Metrics & Trends. There are various plugins which are available in Jenkins to showcase metrics for builds which are carried out over a period of time. These metrics are useful to understand your builds and how frequently they fail/pass over time. As an example, let’s look at the ‘Build History Metrics plugin’.
Step 1 − Go to the Jenkins dashboard and click on Manage Jenkins Step 2 − Go to the Manage Plugins option. Step 3 − Go to the Available tab and search for the plugin ‘Build History Metrics plugin’ and choose to ‘install without restart’. Step 4 − The following screen shows up to confirm successful installation of the plugin.
Some of the features offered by Hudson are: On the other hand, Jenkins provides the following key features: Jenkins is an open source tool with 13.5K GitHub stars and 5.56K GitHub forks. Here's a link to Jenkins's open source repository on GitHub. We are currently using Azure Pipelines for continous integration.
Are you using Java? If so, SONAR should certainly be your first port of call. It does a lot on it's own and also wraps up all the major Java analysis tools, such as:
Out of the box, you'll get metrics on:
It allows you to traverse from the high level analysis through to the source code it relates to. It will be easier if you're using Maven for your build though...
There is a Hudson plugin. And it's free.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With