On Fri, Aug 10, 2018 at 1:35 AM Gary Yao <[email protected]> wrote:
> labelExpression = ((AbstractProject)run.getParent()).getAssignedLabelString()

Again this will throw a `ClassCastException` whenever a Pipeline build
completes unless you guard it with

if (run instanceof AbstractBuild) {

-- 
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/CANfRfr3Kbcn_81-i%3DBckxqgp5sB3RrgrKMz57bLboFFYV%3DN54A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to