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
groovy-cps PR #72
Let's see what I can do here...
Initial groovy-cps PR up at https://github.com/cloudbees/groovy-cps/pull/72
Merged, should be in next groovy-cps (i.e., 1.20) and workflow-cps (i.e., 2.41) releases.
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 ).