Thanks Jessi, actually build is instanceof hudson.model.Run, What kind of method should I be looking for? Sorry, I am new to the jenkins class hierarchy.
On Thursday, August 9, 2018 at 12:34:01 AM UTC+10, Jesse Glick wrote: > > On Wed, Aug 8, 2018 at 8:00 AM Gary Yao <[email protected] <javascript:>> > wrote: > > I have a new requirement to get the label expression defined in the > project where build is restricted to run from. > > > > How can I go from onCompleted(Run build, TaskListener listener) to the > information of "Restrict where this project can be run => Label > Expression"? > > If the `build instanceof AbstractBuild` (i.e., not Pipeline), then you > will find a method for that. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" 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-dev/81b37ca8-a301-4765-acdb-4aa3eb707cd7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
