Plugin Information |
---|
View JDepend on the plugin site for more information. |
Introduction
The JDepend Plugin is a plugin to generate JDepend reports for builds.
Quickstart
- Download the JDepend plugin from the Update Center
- Enable for a project by checking "Report JDepend" under the "Post-build actions" of your project
- Run a build
- View the build page once it has completed, and you should see a "JDepend" entry on the left sidebar.
Notes
The JDepend plugin does not currently report the health of a project, as the sheer number of metrics available in a JDepend report makes it very difficult to find any sort of reasonable estimate of what makes a healthy project. This is one of the times when human intuition might be best!
Bug reporting
Please direct all bugs to the issue tracker, making sure to mention "JDepend" somewhere in the heading or body. Bugs will continue to be looked at and fixed (features will not). For faster resolution, assign 'lewisham' to the bug.
Feature requests
Please direct all feature requests to the issue tracker, making sure to mention "JDepend" somewhere in the heading or body. Please note that active development on this plugin has ceased for the time being (the original itch has been scratched), so if you have new features, it will be quicker to try having a go yourself and make a commit to the SVN repository. The code should be fairly good.
Development history
Version 1.3.0 (Feb 22, 2018)
- JENKINS-49586 - Make the plugin compatible with Jenkins 2.102+
- More info: Plugins affected by fix for JEP-200
- Commit - Create JDepend temporary directory on master (reverts change in 1.2.4)
- Note from Oleg Nenashev: This was a pending commit in the master branch. If you experience any issues with that, raise a JIRA ticket
Version 1.2.4 (Nov 03, 2014)
- Commit - Create JDepend temporary directory on agent instead of the master
Version 1.2.3 (Feb 14, 2011)
- Remove unused code.
Version 1.2.2 (Sep 17, 2009)
- Fixed config file growth. (JENKINS-4494)
Version 1.2.1 (Aug 29, 2009)
- Added relative path to workspace as a possible configuration. No compatibility for Ant-style FileSets though, there should only be one JDepend report.
Version 1.2
- Use existing JDepend XML file. (JENKINS-4083)
Version 1.0 was developed by Chris Lewis (lewisham). Development of version 1.0 of this plugin was made possible by the National Science Foundation and released under the BSD license from the University of California, Santa Cruz. If you like it, remember to keep voting for the public funding of scientific and educational facilities!
12 Comments
gontard -
Hello,
i think it could be interresting to change the health status or to make the build instable if JDepend detects some cyclic dependencies.
Kind Regards
Lewisham -
Interesting idea! I'll keep it in mind, but I'm not working on this plugin for the foreseeable future
bokc -
Hello,
Thanks for this plugin.
2 remarks:
- I was intersting to have the number of class of my project in the project hudson resume. Pehaps in graph representation with some other metrics (like checkstyle?)?
- My project workspace has the lib needed in my project. So I have a big JDepend report. It whould be interresting to exlude some jar for the report.
BokC
Lewisham -
The first remark is another one for the feature list if I ever get time ever again (unlikely, silly PhD in the way!). The second remark should be solved with 1.2, simply have ant or your build tool generate the JDepend report as you wish.
Unknown User (ckutz)
Does someone know how to specify a jdepend.properties file for the plugin (other than putting it into the home directory of the user running Hudson)?
I tried to put it into one of the jars being analysed, but that didn't work.
Lewisham -
I'm not sure what a jdepend.properties file would do (something from JDepend itself, right?) but hopefully 1.2 will let you configure something to your liking.
Anirudhsinh Zala
Is there anyway to show "pyramid.svg" and "jdepend.svg" on the project's homepage? It looks like that currently plugin just uses "jdepend.xml" to prepare reports.
Unknown User (misterionkell@gmail.com)
I am interesting this too.
p.s. If Chris don`t planed to do this, i think that it can be done throw some other plugin just for insert images to project screen.
Unknown User (misterionkell@gmail.com)
I am interesting this too.
p.s. If Chris don`t planed to do this, i think that it can be done throw some other plugin just for insert images to project screen.
Simon Champion
The method I've seen for displaying these graphics is to edit the project description string to include HTML to show the images directly. Something like this:
This worked for me.
Hope that helps.
Anirudhsinh Zala
Please check this bug http://issues.jenkins-ci.org/browse/JENKINS-7699
Although it is primarily related to Hudson core, but occurs when JDepend plugin is used.
hunter jungle
Hello everyone
I have a PHP project to deploy and throught Jdepend to collect PHP depend result
But my project is a romote deploy project , The jenkins server is different with test server
Now I remote deploy project and scp result from test server to jenkins server. but it can not show result in jenkins CI.
How do I resolve this problem. Thx
sorry My English is poor.