Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Duplicate
-
Component/s: workflow-cps-plugin
-
Labels:
-
Environment:1.580.13.1 / Workflow 1.4
-
Similar Issues:
-
Epic Link:
Description
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
Attachments
Issue Links
- 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
Activity
Field | Original Value | New Value |
---|---|---|
Labels | groovy | |
Summary | Unable to pass variable to file path element of unarchive map | GString not flattened to String by DSL inside a map |
Epic Link | JENKINS-35390 [ 171183 ] |
Workflow | JNJira [ 162512 ] | JNJira + In-Review [ 180953 ] |
Component/s | pipeline-general [ 21692 ] |
Component/s | workflow-plugin [ 18820 ] |
Component/s | workflow-cps-plugin [ 21713 ] | |
Component/s | pipeline [ 21692 ] |
Assignee | Jesse Glick [ jglick ] | Andrew Bayer [ abayer ] |
Remote Link | This issue links to "PR #161 (Web Link)" [ 17426 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Link |
This issue duplicates |
Resolution | Duplicate [ 3 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |