On Wed, Aug 8, 2018 at 8:00 AM Gary Yao <[email protected]> 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/CANfRfr1KpNkP1cRj1Mqq-R1zKzmF8DdC4EHfoepWGA8Ounw-bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to