The Groovy Postbuild plugin exposes some predefined variables like.

   - hudson - the current Hudson instance (javadoc 
   <http://javadoc.jenkins-ci.org/?hudson/model/Hudson.html>).


I have checked the Javadoc and it looks like much of hudson instance is 
deprecated.

*getInstance 
<http://javadoc.jenkins-ci.org/hudson/model/Hudson.html#getInstance()>*()
*Deprecated.* 
*Here only for compatibility. Use Jenkins.getInstance() 
<http://javadoc.jenkins-ci.org/jenkins/model/Jenkins.html#getInstance()> 
instead.*

Perhaps this plugin should be updated to expose instead:

   - jenkins - the current Jenkins instance (javadoc 
   <http://javadoc.jenkins-ci.org/?jenkins/model/Jenkins.html>).


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-users+unsubscr...@googlegroups.com.
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.

Reply via email to