Re: Groovy+pipeline: why does executing step exit function?

2016-02-05 Thread Oleh Olkhovskyy
Aah, I missed that sentence when was reading tutorial. Indeed calling from normal function works as expected. Thanks! -- 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 em

Groovy+pipeline: why does executing step exit function?

2016-02-04 Thread Oleh Olkhovskyy
Hi, I'm writing a pipeline groovy script. and stumbled upon this problem: If I try to run step within a function, then function is immediately terminated and doesn't execute following instructions. I.e. I have function: @NonCPS def getBuildOutput(build_job) { echo "BeforeStep" def prop