Branch clean up deletes plan branch even if VCS branch was deleted and recreated

XMLWordPrintable

    • Type: Bug
    • Resolution: Invalid
    • Priority: Medium
    • None
    • Affects Version/s: 5.9.7, 5.13.2
    • Component/s: None
    • Severity 3 - Minor

      SUMMARY

      Bamboo deletes plan branches after expiry period if a VCS branch had been deleted, even if that VCS branch had been recreated afterwards.

      SCENARIO

      • VCS branch created in repository, e.g. "B1"
      • Bamboo detects the branch and creates a plan branch for it
      • VCS branch "B1" deleted from repository
      • Bamboo detects the deletion of "B1", disables plan branch and schedules it's deletion
      • VCS branch "B1" recreated in repository
      • Bamboo ignores it and deletes the plan branch after expiry period (e.g. 7 days)
      • Bamboo will never re-create plan branch for "B1" automatically

      WORKAROUND

      • use different branch name
      • (available after BAM-16505) after the plan branch is deleted (after expiry period), manually re-create it in Bamboo

      FIX SUGGESTION

      Detect that a VCS branch had been recreated and react, e.g.:

      • re-enable plan branch & no longer schedule it for deletion, or
      • create a new plan branch for it, keeping the old one still in queue for deletion

            Assignee:
            Unassigned
            Reporter:
            Marcin Oles
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: