-
Bug
-
Resolution: Unresolved
-
Minor
-
None
Code like:
Boolean A = true Boolean B = true Boolean C = true A = B = C = false println( A ) println( B ) println ( C )
gives following results when executed in jenkins
null
null
false
but in script console or if function is marked as @NonCPS
false
false
false
which is expected behavior.
This is a known condition from the Jenkins continuation passing style (CPS) that is used to assure the safety of the script code that is being executed. Refer to the groovy-cps plugin README for more details.