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

Multiple assignment in pipeline fails with LHS Error

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      workflow-cps 2.46

      Description

      Multiple assignment like:

      def (a, b) = [1,2]

       No longer works, I believe this worked in Jenkins around 2.65 (and the pipeline components from around that release)

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            So this was my dumb mistake - I added support for multiple assignments...but only in non-sandboxed mode. Oops. Anyway, https://github.com/cloudbees/groovy-cps/pull/81 adds multiple assignment support in sandbox as well.

            Show
            abayer Andrew Bayer added a comment - So this was my dumb mistake - I added support for multiple assignments...but only in non-sandboxed mode. Oops. Anyway, https://github.com/cloudbees/groovy-cps/pull/81 adds multiple assignment support in sandbox as well.
            Hide
            duemir Denys Digtiar added a comment -

            Andrew Bayer It sound's like I don't need to raise a separate script-security ticket after all. Correct?

            Show
            duemir Denys Digtiar added a comment - Andrew Bayer It sound's like I don't need to raise a separate script-security ticket after all. Correct?
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pom.xml
            src/test/java/org/jenkinsci/plugins/workflow/cps/CpsFlowDefinition2Test.java
            http://jenkins-ci.org/commit/workflow-cps-plugin/9a82584c267f84a4dce925a69d45ad6018196a0a
            Log:
            [JENKINS-45575, JENKINS-49679] Test multiple assignment CPS fixes

            Specifically https://github.com/cloudbees/groovy-cps/pull/81 and https://github.com/cloudbees/groovy-cps/pull/82

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pom.xml src/test/java/org/jenkinsci/plugins/workflow/cps/CpsFlowDefinition2Test.java http://jenkins-ci.org/commit/workflow-cps-plugin/9a82584c267f84a4dce925a69d45ad6018196a0a Log: [JENKINS-45575, JENKINS-49679] Test multiple assignment CPS fixes Specifically https://github.com/cloudbees/groovy-cps/pull/81 and https://github.com/cloudbees/groovy-cps/pull/82
            Hide
            abayer Andrew Bayer added a comment -

            Will be in next release of workflow-cps - 2.46.

            Show
            abayer Andrew Bayer added a comment - Will be in next release of workflow-cps - 2.46.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            Jenkinsfile
            pom.xml
            src/test/java/org/jenkinsci/plugins/workflow/cps/CpsFlowDefinition2Test.java
            http://jenkins-ci.org/commit/workflow-cps-plugin/78b137d8743ea3cf80ae302ec89f8aeabf3eb944
            Log:
            Merge pull request #206 from abayer/jenkins-45575-jenkins-49679

            [JENKINS-45575, JENKINS-49679] Test multiple assignment CPS fixes

            Compare: https://github.com/jenkinsci/workflow-cps-plugin/compare/57bda81325d5...78b137d8743e

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: Jenkinsfile pom.xml src/test/java/org/jenkinsci/plugins/workflow/cps/CpsFlowDefinition2Test.java http://jenkins-ci.org/commit/workflow-cps-plugin/78b137d8743ea3cf80ae302ec89f8aeabf3eb944 Log: Merge pull request #206 from abayer/jenkins-45575-jenkins-49679 [JENKINS-45575, JENKINS-49679] Test multiple assignment CPS fixes Compare: https://github.com/jenkinsci/workflow-cps-plugin/compare/57bda81325d5...78b137d8743e

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                kbrowder Kevin Browder
              • Votes:
                7 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: