• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • workflow-cps-plugin
    • 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

          Hans Schulz created issue -
          Hans Schulz made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Hans Schulz made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          Hans Schulz made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Andrew Bayer made changes -
          Component/s New: workflow-cps-plugin [ 21713 ]
          Component/s Original: pipeline [ 21692 ]

            Unassigned Unassigned
            schulzha Hans Schulz
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: