Support for Automatic Branch Cleanup

Issue #72 open
AD134 created an issue

We've just updated the plugin from version 1.1.7 which means we can now use Branch Discovery, which works perfectly. What doesn't seem to work is Automatic Branch Cleanup, i.e. having a plan branch be deleted as part of the "daily cleanup" (which I didn't know existed and am not sure is enabled) when the TFS branch is deleted. Are we doing something wrong or has this just not been implemented yet?

Comments (3)

  1. Sergey Podobry

    We performed testing and found no issues with automatic branch cleanup.

    Please, make sure that you've enabled delete plan branch option:

    delete-plan-branch.png

    Also note that the branch cleanup job is running daily at 3:00. If Bamboo was down at that time then no cleanup is performed. That's how Bamboo works and cannot be changed.

    Search in Bamboo logs for BranchExpiryJob:

    2017-07-27 03:00:00,073 INFO [scheduler_Worker-1] [BranchExpiryJob] Branch expiry started.
    2017-07-27 03:00:00,074 INFO [scheduler_Worker-1] [BranchExpiryJob] Cleaning up VCS branches detected as deleted...
    2017-07-27 03:00:00,095 INFO [scheduler_Worker-1] [BranchExpiryJob] Deleting Plan Branch 'PR - PL - SimpleDriver-branch3' of Plan 'PR - PL' since the VCS branch was deleted more than 0 days ago.
    
  2. Log in to comment