No, it is how the groovy truth is defined. See http://docs.codehaus.org/display/GROOVY/Groovy+Truth Non-empty strings are coerced to true, even if the value is "false".
Vincent 2015-02-20 6:11 GMT+01:00 Jos Backus <j...@catnook.com>: > But isn't that a bug? Why doesn't the surrounding code cast the parameter > to a Boolean value, as certainly I would expect? > > -- > 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/a5c46e5e-6dec-4736-ba5d-4653f2da7695%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAH-zGCgFmVSyPLW3VOTtX853N%3D87kJd4VJ7e2Fvb6z1HJDPO2w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.