Details
-
Bug
-
Resolution: Fixed
-
Low
-
6.0.3
-
Severity 3 - Minor
-
Description
Summary
Plans created (or updated) by Specs fail to share artifact.
Environment
- Tested in Linux
- Oracle Java 1.8.0_111
Steps to Reproduce
- Create a plan with a shared artifact through Bamboo UI.
- Create a deployment project, using the previous plan and previous shared artifact.
- Export the plan to Specs. Example code used:
Plan rootObject = new Plan(new Project() .key(new BambooKey("B68")) .name("BSP33668"), "PLAN1", new BambooKey("PL1")) .stages(new Stage("Stage1") .jobs(new Job("JOB1", new BambooKey("JOB1")) .artifacts(new Artifact() .name("Artifact1") .copyPattern("*")) .tasks(new VcsCheckoutTask() .description("Checkout Default Repository") .checkoutItems(new CheckoutItem().defaultRepository()) .cleanCheckout(true), new MavenTask() .enabled(false) .goal("clean test") .jdk("JDK 1.8") .executableLabel("Maven 3") .hasTests(true) ) ) ) .linkedRepositories("repo-consumer"); bambooServer.publish(rootObject);
Expected Results
No changes at all.
Actual Results
- Artifact is not shared anymore.
- Deployment project fails (see screenshot attached).
Notes
No errors recorded in logs.
Workaround
Manually sharing the artifact again.