Artifact Download Task in deployment projects does not expand variables on Bamboo 9

XMLWordPrintable

    • Type: Bug
    • Resolution: Invalid
    • Priority: Low
    • None
    • Affects Version/s: 9.2.1
    • Component/s: Deployments
    • None
    • 1
    • Severity 3 - Minor

      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

      1. Add an Artifact Download task to a deployment project
      2. 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}
        

              Assignee:
              Mateusz Szmal
              Reporter:
              Mohamed Ayman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: