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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 8.0.0
    • Affects Version/s: 7.2.3
    • Component/s: Artifacts, Bamboo Specs
    • None
    • 1
    • Severity 3 - Minor

      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.

              Assignee:
              Alexey Chystoprudov
              Reporter:
              Patricio (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: