Details
-
Bug
-
Resolution: Invalid
-
Low
-
None
-
9.2.1
-
None
-
1
-
Severity 3 - Minor
-
Description
Issue Summary
Artifact Download Task in deployment projects is not expanding variables on Bamboo 9.
This is reproducible on Data Center: Yes
Steps to Reproduce
- Add an Artifact Download task to a deployment project
- Set the Destination path as a Global variable
Expected Results
Bamboo should expand the variables and store the artifacts correctly
Actual Results
Bamboo treats the variables as strings and stores the artifacts in literal folders named after the variable names. E.g.:
27-Jun-2023 08:40:01 Preparing to download plan result TEST-TA-2 artifact: Required shared artifact Http Compression On : [test], patterns: [**/*] 27-Jun-2023 08:40:01 Artifact [test] downloaded successfully in 10.19 ms to {bamboo.dir1}/ {bamboo.dir2}/
Workaround
Option1:
- Do not use variables in the Destination path
Option2:
- Use a script task that will create the directories and use the value of the variable in the destination path of the Artifact download task
# Using ${bamboo.var1} as an example # It can be any variable # Create the folder based on the variable value mkdir ${bamboo.var1}