Find deprecated Jenkins api used in plugins

60 views
Skip to first unread message

Vernat Emeric

unread,
Nov 22, 2015, 10:45:33 AM11/22/15
to jenkin...@googlegroups.com
Hi all,

I have written a tool to find deprecated Jenkins api used in plugins:
https://github.com/evernat/deprecated-usage-in-plugins

In short :
  • 430 plugins are using a deprecated Jenkins api
  • 18 deprecated classes, 135 deprecated methods and 12 deprecated fields are used in plugins
  • 29 deprecated and public Jenkins classes, 343 deprecated methods, 58 deprecated fields are not used in the latest published plugins

You can see the details and deprecated usage for each plugin in the continuous integration thanks to Daniel:
https://ci.jenkins-ci.org/view/Infrastructure/job/infra_deprecated-usage-in-plugins/ws/target/output.html

You can also jump directly to your plugin. For example:
https://ci.jenkins-ci.org/view/Infrastructure/job/infra_deprecated-usage-in-plugins/ws/target/output.html#monitoring

In this case, hudson.model.Hudson.getInstance() is deprecated and should be replaced by jenkins.model.Jenkins.getInstance()

bye,
Emeric

Manuel Jesús Recena Soto

unread,
Nov 22, 2015, 12:41:02 PM11/22/15
to Jenkins Developers

Very interesting!

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/5651E317.2090309%40free.fr.
For more options, visit https://groups.google.com/d/optout.

Baptiste Mathus

unread,
Nov 22, 2015, 12:59:35 PM11/22/15
to jenkin...@googlegroups.com

Hi,
Yeah, cool informations. Congrats!

IIRC it's planned to run every day in the long term.

As it's quite quick to run (less than a minute), wouldn't it be an idea to change the frequency to say every 10 minutes or so just during Hacksgiving, as there should be some work done in that area?

Thanks

-- Baptiste

evernat

unread,
Nov 22, 2015, 2:58:23 PM11/22/15
to Jenkins Developers, m...@batmat.net
Hi Baptiste,

The tool runs on released plugins.
So, PR or fixes without release during Hacksgiving would not be enough to see the result in the tool.

Emeric

James Nord

unread,
Nov 26, 2015, 5:43:27 AM11/26/15
to Jenkins Developers
Excellent tool thanks

evernat

unread,
Nov 27, 2015, 5:11:27 AM11/27/15
to Jenkins Developers
You are welcome.

For information, the source code of the tool is now at:
https://github.com/jenkins-infra/deprecated-usage-in-plugins

Emeric

Le jeudi 26 novembre 2015 11:43:27 UTC+1, James Nord a écrit :
Excellent tool thanks
Reply all
Reply to author
Forward
0 new messages