On 04.03.2015, at 14:12, Sverre Moe <[email protected]> wrote: > Its a little confusing reading the API. What to use between jenkins.model or > hudson.model
Jenkins used to be called Hudson until early 2011. Renaming packages breaks plugins relying on old names, so in general, any class predating 2011 will be in hudson.*, while everything newer is generally in jenkins.*. > The link points to hudson.model.Hudson, not jenkins.model.Jenkins > http://javadoc.jenkins-ci.org/?hudson/model/Hudson.html > Though I do see that Hudson extends Jenkins. Script: Hudson.instance == Jenkins.instance Result: true So it really doesn't make a difference. Like the package name 'hudson.model', Groovy Postscript predates the rename/fork to Jenkins and therefore uses the older name. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/E6E762CF-C879-4318-A1B7-410CC11B2669%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
