Details
-
Bug
-
Resolution: Fixed
-
Low
-
7.2.3
-
None
-
1
-
Severity 3 - Minor
-
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".
- Create a plan with two jobs, Job1 and Job2, in two different stages (Stage1 contains Job1, Stage2 contains Job2).
- Job1 will generate an artifact.
- Job2 will have an "Artifact Download task". In the destination path, input something. For example: "client/dist".
- 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
- depends on
-
BAM-20830 Ability to configure artifact dependencies through YAML Specs
- Closed