Closed mstn closed 7 years ago
https://github.com/jenkinsci/pipeline-examples/blob/master/docs/BEST_PRACTICES.md
If you need to do that kind of thing to make your scripting make sense, do it in methods annotated with @NonCPS. These methods will not be CPS-transformed, so can do some things that just can't be done in the serializable/resumable CPS context.
https://github.com/jenkinsci/pipeline-examples/blob/master/docs/BEST_PRACTICES.md