-
Bug
-
Resolution: Unresolved
-
Major
-
None
Executing the following code as pipeline script (in a global library or after allowing Eval.x in the Sandbox):
class Test { String testeval() { return Eval.x(this, '"${x.a()}-${x.b()}-${x.c()}"') } String a() { return "a" } String b() { return "b" } String c() { return "c" } } echo new Test().testeval()
prints only "a" instead of the expected "a-b-c"
[JENKINS-40591] Eval.x returns after the first method
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Priority | Original: Major [ 3 ] | New: Minor [ 4 ] |
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Component/s | New: workflow-cps-plugin [ 21713 ] | |
Component/s | Original: pipeline [ 21692 ] |