On 04.03.2015, at 14:12, Sverre Moe <
sverr...@gmail.com> 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.*.
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.