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

Plans created (or updated) by Specs fail to share artifact.

    XMLWordPrintable

Details

    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

      1. Create a plan with a shared artifact through Bamboo UI.
      2. Create a deployment project, using the previous plan and previous shared artifact.
      3. 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pdemitrio Patricio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: