-
Bug
-
Resolution: Duplicate
-
Minor
-
1.580.13.1 / Workflow 1.4
I want to resolve the artifact to be unarchived at execution time.
Therefore I want to be able to perform the following:
requiredFile = 'target/<some archived file name>'
unarchive mapping: [requiredFile: .]
Unfortunately this does not replace `requiredFile` with its value.
trying to use the Groovy style like this:
unarchive mapping: ["$requiredFile": .]
results in
java.lang.ClassCastException: org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String
- duplicates
-
JENKINS-43934 GString kept unevaluated as long as StepDescriptor.newInstance (was: Pipeline build fails with serialization error when using string interpolation)
-
- Closed
-
- links to
[JENKINS-27916] GString not flattened to String by DSL inside a map
Labels | New: groovy | |
Summary | Original: Unable to pass variable to file path element of unarchive map | New: GString not flattened to String by DSL inside a map |
Epic Link | New: JENKINS-35390 [ 171183 ] |
Workflow | Original: JNJira [ 162512 ] | New: JNJira + In-Review [ 180953 ] |
Component/s | New: pipeline-general [ 21692 ] |
Component/s | Original: workflow-plugin [ 18820 ] |
Component/s | New: workflow-cps-plugin [ 21713 ] | |
Component/s | Original: pipeline [ 21692 ] |
Assignee | Original: Jesse Glick [ jglick ] | New: Andrew Bayer [ abayer ] |
Remote Link | New: This issue links to "PR #161 (Web Link)" [ 17426 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |