-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
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() }
- relates to
-
JENKINS-50633 JEP-200 - org.apache.maven.model.Model might be dangerous, so rejecting
-
- Resolved
-
- links to
[JENKINS-50666] Create a nonCPS() wrapper to simplify nonCPS invocations
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Assignee | New: Oleg Nenashev [ oleg_nenashev ] |
Link |
New:
This issue relates to |
Remote Link | New: This issue links to "https://github.com/jenkinsci/workflow-cps-plugin/pull/218 (Web Link)" [ 20395 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
As noted in PR review, this is impossible as described. It would be possible in principle to introduce a new mechanism for delineating a lexical block within a method which is not CPS-transformed, though I do not know offhand what Groovy syntax would be suitable for this purpose, and it would certainly require nontrivial changes to CpsTransformer.