On Sat, Oct 22, 2016 at 9:33 AM, Sean McNamara <
smc...@gmail.com> wrote:
> Hello,
>
> I'm trying to print to the console output tab of a running pipeline
> project from a global pipeline library. My understanding is that the
> only way to do this is via the echo step.
>
> What I have is a bunch of more "sophisticated" Groovy code (such as -
> *gasp!* - loops) that doesn't work under the CPS interpreter, so I
> have *most* of my global pipeline library's methods annotated with
> @NonCPS.
>
> However, I have a CPS-interpreted class that looks like this:
>
> class Stepper implements Serializable {
> static def steps
> static def log(o) { Stepper.steps.echo o; }
> }