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

When using Yaml Specs, Bamboo will duplicate artifacts if the destination path is different than root

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 8.0.0
    • 7.2.3
    • Artifacts, Bamboo Specs
    • None

    Description

      Issue Summary

      When using Yaml Sepcs, Bamboo will duplicate artifacts if the destination path is different than root.

      Steps to Reproduce

      For this example, my artifact will contain one file, "file.txt".

      1. Create a plan with two jobs, Job1 and Job2, in two different stages (Stage1 contains Job1, Stage2 contains Job2).
      2. Job1 will generate an artifact.
      3. Job2 will have an "Artifact Download task". In the destination path, input something. For example: "client/dist".
      4. Export this plan as Yaml Specs and import it, for it to become a Specs plan.
        Alternatively, create this Specs plan from scratch using YAML, as long as it follows the conditions stated above.

      Finally, run the plan.

      Expected Results

      In Job2, the artifact will be present under "client/dist"

      Actual Results

      In the build directory, the artifact will be present in the root folder and under "client/dist".

      Workaround

      Workaround 1:
      As a workaround, a script task can be created just after the artifact download to delete the duplicates.

      Workaround 2:
      Download the artifact in the root location, and have a script task that moves those files into the desired location.

      Attachments

        Issue Links

          Activity

            People

              achystoprudov Alexey Chystoprudov
              pdemitrio Patricio
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: