But are you runnint this job on master JVM? What about running it from slave node? How can I get the value? I am trying to execute it from slave node and it is giving me error. It is strict requirement for me to run it from slave machine only.
On Thursday, March 15, 2012 at 8:47:03 AM UTC-5, Jay Flowers wrote: > > I figured it out... I was not running the Groovy script as the build step > type "Execute system Groovy script" > > > On Thu, Mar 15, 2012 at 9:00 AM, Jay Flowers <[email protected] > <javascript:>> wrote: > >> This use to work for me: >> >> def build = Thread.currentThread().executable >> >> Now I get this error: >> >> Caught: groovy.lang.MissingPropertyException: No such property: executable >> for class: java.lang.Thread >> at hudson2123325863987208585.run(hudson2123325863987208585.groovy:5) >> >> >> Why oh why is the happening? :-) Anyone know... >> >> >> -- >> Jay Flowers >> ---------------------------------------------------------------------- >> http://jayflowers.com >> --------------------------------------------------------------------- >> > > > > -- > Jay Flowers > ---------------------------------------------------------------------- > http://jayflowers.com > --------------------------------------------------------------------- > -- 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/0e6ecdfa-94c1-4c4a-8140-4f2bbbcefde4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
