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

Artifact subscriptions published from Bamboo Specs will duplicate

      Summary

      Publishing a plan from Bamboo Specs with the same Artifact Subscription multiple times will cause the subscription (Artifact dependency) to be duplicated despite the unique key of artifact / destination being identical. Example setup:

              Stage stage1 = new Stage("Stage 1")
                      .jobs(new Job("Job1", "JOB1")
                              .tasks(new ScriptTask().inlineBody("echo hello"))
                              .artifacts(new Artifact()
                                      .name("images")
                                      .copyPattern("*.jpg")
                                      .shared(true))
                      );
      
              Stage stage2 = new Stage("Stage 2")
                      .jobs(new Job("Job2", "JOB2")
                              .tasks(new ScriptTask().inlineBody("echo hello"))
                              .artifactSubscriptions(new ArtifactSubscription()
                                      .artifact("images")
                                      .destination("images/"))
                      );
      

      Steps to Reproduce

      1. Use the attached PlanSpec.java and publish the spec twice through Bamboo Specs.

      Expected Results

      Only one Artifact dependency exists on the plan at Job Configuration > Artifacts.

      Actual Results

      Two identical Artifact dependencies exists on the plan at Job Configuration > Artifacts.

      Notes

      Attempting to create duplicate artifact dependencies through the UI fails. Validation is successfully enforced.

            [BAM-18489] Artifact subscriptions published from Bamboo Specs will duplicate

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 2311705 ] New: JAC Bug Workflow v3 [ 3385798 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Symptom Severity Original: Major [ 14431 ] New: Severity 2 - Major [ 15831 ]
            Marcin Gardias made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
            Marcin Gardias made changes -
            Fix Version/s New: 6.1.0 [ 71390 ]
            Marcin Gardias made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            Marcin Gardias made changes -
            Assignee New: Marcin Gardias [ mgardias ]
            Oleksandr Tkachenko made changes -
            Affects Version/s New: 6.0.3 [ 72335 ]
            Affects Version/s Original: 6.0.2 [ 71868 ]
            Pawel Skierczynski made changes -
            Occurrence Factor New: 10% [ 12830 ]
            Symptom Severity Original: Minor [ 14432 ] New: Major [ 14431 ]
            Status Original: Needs Triage [ 10030 ] New: Open [ 1 ]
            Oleksandr Tkachenko made changes -
            Labels New: bamboo-bugfix-kanban
            Jeremy Owen made changes -
            Affects Version/s New: 6.0.2 [ 71868 ]

              mgardias Marcin Gardias
              jowen@atlassian.com Jeremy Owen
              Affected customers:
              2 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: