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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Medium
    • None
    • 5.9.7, 5.13.2
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: