-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
Allow the addition of a configurable switch on the job that causes CPS to silently not continue on non-serializable code, and a closure that allows you to place arbitrary non-serializable code inline (rather than a method annotation).
Example:
def myString = 'adsfasdf'
def firstTwoLetters = null
unsafe {
def matcher = (myString ~= /([a-z]
).*/)
if(matcher.matches()){
firstTwoLetters = matcher.group(1)
}
}
println(firstTwoLetters)
- duplicates
-
JENKINS-33761 Ability to disable Pipeline durability and "resume" build.
-
- Closed
-
[JENKINS-37475] Add a configurable switch on job that causes CPS to silently not continue on non-serializable code
Component/s | New: pipeline-general [ 21692 ] |
Component/s | Original: workflow-plugin [ 18820 ] |
Link |
New:
This issue duplicates |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |