Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44027

Support for multi-variable assignment in scripted pipeline

    Details

    • Similar Issues:

      Description

      There are several use cases where using multi variable assignment makes cleaner looking pipeline code.

      I've set up a couple snippets that generate different errors.

      Directly in pipeline (or regular function): general.txt

      In @NonCPS: non-cps.txt

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            Let's see what I can do here...

            Show
            abayer Andrew Bayer added a comment - Let's see what I can do here...
            Hide
            abayer Andrew Bayer added a comment -
            Show
            abayer Andrew Bayer added a comment - Initial groovy-cps PR up at https://github.com/cloudbees/groovy-cps/pull/72
            Hide
            abayer Andrew Bayer added a comment -

            Merged, should be in next groovy-cps (i.e., 1.20) and workflow-cps (i.e., 2.41) releases.

            Show
            abayer Andrew Bayer added a comment - Merged, should be in next groovy-cps (i.e., 1.20) and workflow-cps (i.e., 2.41) releases.
            Hide
            pascallap Pascal Laporte added a comment -

            Andrew Bayer We still have the «multiple assignment» even with version 2.41 of `workflow-cps`

            We have replayed the exact samples provided in this issue and still get the same errors (tested with jenkins 2.74 and 2.83 ).

            Show
            pascallap Pascal Laporte added a comment - Andrew Bayer  We still have the «multiple assignment» even with version 2.41 of `workflow-cps` We have replayed the exact samples provided in this issue and still get the same errors (tested with jenkins 2.74 and 2.83 ).

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                rpocase Robby Pocase
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: