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

Branches are created/triggered even with Plan disabled

      Steps to reproduce
      1. create application link between Bamboo v5.7.2 and Stash v3.6.0
      2. create a repository in Stash
      3. commit something to the repository
      4. create a Project / Plan in Bamboo
      5. set up Stash repository in "Plan configuration >> Repositories" tab
      6. under "Plan configuration >> Triggers" tab, select "Stash repository triggers the build when changes are committed" as "Trigger type"
      7. under "Plan configuration >> Branches" tab, enable "Create plan branches for branches detected in the repository"
      8. run your build
      9. disable your build Plan
      10. create a new Branch
        git checkout -b newbranch
        
      11. commit something to the "newbranch"

      You will notice a new branch will be displayed under the Plan in Bamboo and the same will trigger a build.

            [BAM-15536] Branches are created/triggered even with Plan disabled

            I agree, if a plan is disabled, it should be completely disabled. Current behavior violates principle of least surprise.

            Deleted Account (Inactive) added a comment - I agree, if a plan is disabled, it should be completely disabled. Current behavior violates principle of least surprise.

            I guess I'm not understanding why this feature is 'wanted'. I would like 1 place to disable the entire plan and it's branches without having to go in and disable each individual branch as well. My plan has a polling trigger setup for all branches, I would like to see that if the plan is disabled, the polling of branches associated w/ that plan is also disabled, that way when I re-enable the plan, all branches automatically start polling again without out further changes required by the user.

            Heather Noe added a comment - I guess I'm not understanding why this feature is 'wanted'. I would like 1 place to disable the entire plan and it's branches without having to go in and disable each individual branch as well. My plan has a polling trigger setup for all branches, I would like to see that if the plan is disabled, the polling of branches associated w/ that plan is also disabled, that way when I re-enable the plan, all branches automatically start polling again without out further changes required by the user.

            This behaviour is intended. You disabled the main branch, so it won't build, but at the same time the branch detection is still enabled.

            Przemek Bruski added a comment - This behaviour is intended. You disabled the main branch, so it won't build, but at the same time the branch detection is still enabled.

              Unassigned Unassigned
              rsperafico Rafael Sperafico (Inactive)
              Affected customers:
              4 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: