-
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