Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-22377

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Low
    • None
    • 9.2.1
    • Deployments
    • None

    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

      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}
        

      Attachments

        Issue Links

          Activity

            People

              851f15845f55 Mateusz Szmal
              feeaafc2eddb Mohamed Ayman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: