Create a nonCPS() wrapper to simplify nonCPS invocations

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Currently any Pipeline developer needs to create a new method and to mark it as NonCPS in order to define a NonCPS code. It would be great to create a new NonCPS wrapper method, which allows writing code just within closure.

      Example:

      nonCPS.exec() {
          Object fooBar = // non serializable object
          fooBar.doSomething()
      }
      

            Assignee:
            Oleg Nenashev
            Reporter:
            Oleg Nenashev
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: