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 skrev Daniel Beck følgende:
>
> It's the same instance. 
>
> On 04.03.2015, at 14:02, Sverre Moe <sverr...@gmail.com <javascript:>> 
> 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. 
> > 
> > getInstance() 
> > Deprecated. 
> > Here only for compatibility. Use Jenkins.getInstance() instead. 
> > 
> > Perhaps this plugin should be updated to expose instead: 
> >         • jenkins - the current Jenkins instance (javadoc). 
> > 
> > In the mean time till this is updated/fixed in the plugin how do I get 
> the jenkins instance myself? 
> > 
> > -- 
> > 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 jenkinsci-use...@googlegroups.com <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/1477128d-edec-4860-9a11-473ae942aaf8%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/73ea5826-7fb6-4078-8260-0b1ac7505158%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to