Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hudson/Jenkins source code metrics?

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?

like image 376
Stefan Kendall Avatar asked Mar 11 '11 20:03

Stefan Kendall


People also ask

What is difference between Jenkins and Hudson?

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.

Is Hudson A CI CD tool?

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.

What is Hudson software testing?

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.

What is Hudson server?

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.

How do I record and display code coverage metrics in Jenkins?

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

What is metrics and trends in Jenkins?

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’.

How to enable build history metrics plugin in Jenkins?

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.

What is the difference between Hudson and Jenkins?

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.


1 Answers

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:

  • Potential Architectural & Design issues
  • Unit test coverage (uses cobertura)
  • Lines of code\packages\classes etc
  • Potential bugs
  • Code duplication
  • Adherence to code formatting standards
  • (plus many more)

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.

like image 90
Geoff Bullen Avatar answered Sep 22 '22 17:09

Geoff Bullen