Re: Groovy Postbuild Plugin: Access Jenkins and not Hudson instance

2015-03-04 Thread Daniel Beck
On 04.03.2015, at 14:12, Sverre Moe 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

Re: Groovy Postbuild Plugin: Access Jenkins and not Hudson instance

2015-03-04 Thread Sverre Moe
Its a little confusing reading the API. What to use between jenkins.model or hudson.model 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. onsdag 4. mars 2015 14.03.51 UTC+1 skre

Re: Groovy Postbuild Plugin: Access Jenkins and not Hudson instance

2015-03-04 Thread Daniel Beck
It's the same instance. On 04.03.2015, at 14:02, Sverre Moe wrote: > The Groovy Postbuild plugin exposes some predefined variables like. > • hudson - the current Hudson instance (javadoc). > > I have checked the Javadoc and it looks like much of hudson instance is > deprecated. > > getI

Groovy Postbuild Plugin: Access Jenkins and not Hudson instance

2015-03-04 Thread Sverre Moe
The Groovy Postbuild plugin exposes some predefined variables like. - hudson - the current Hudson instance (javadoc ). I have checked the Javadoc and it looks like much of hudson instance is deprecated. *getInstance