-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
13
-
Problem Definition
Users with Admin access to a plan can remove plan branches from the Plan configuration page as well as the Build > Branch status page in Bamboo. Attempting to delete the main branch (e.g. master) of a plan (or the plan itself) from the Plan configuration > Actions > Delete plan page will result in the following warning message:
Delete plan
You are about to delete plan "Project - Plan" and all of its branches. This plan has X branches, X stage and X job. If you proceed with this action Bamboo will irrevocably delete all branches, configurations, artifacts, logs and results related to this plan.
However, deleting the same branch (e.g. master) from the Build > Branch status page results in the following warning message being displayed:
Do you want to delete this branch build?
This will irreversibly remove all build results and associated artifacts for this branch build.
Suggested Solution
Make it crystal clear to the user that they are attempting to remove the main branch of a plan through the Build > Branch status page and this will result in deleting the entire plan. Bamboo should be able to detect that the branch in question is the main branch of the plan and add an additional warning there. For example:
Do you want to delete this branch build?
This will irreversibly remove all build results and associated artifacts for this branch build.
You are about to delete the main branch of the plan "Project - Plan". This will remove the plan and all of its branches. This plan has X branches, X stage and X job. If you proceed with this action Bamboo will irrevocably delete all branches, configurations, artifacts, logs and results related to this plan.