How to change short lived branch to long live branch and make it main branch?

Template for a good new topic, formatted with Markdown:

  • Azure DevOps yaml pipelines
  • Want App_Release_Branch to be long-lived and main branch of this project
  • Tried changing “Long-lived branches pattern” to App_Release_Branch like in screenshot but no effect
  • See screenshot


Sorry, but that functionality just isn’t available.

The closest you could come would be to

  • delete your short-lived branch
  • change your long-lived branch naming convention
  • (re)analyze your branch to get it into SonarCloud as a long-lived branch.

Unfortunately, you’re not going to be able to make it the main branch, even after re-creating it as a long-lived branch.


ok thanks, so how do I get the App_Release_Branch to be long lived?

I changed the pattern as shown in the screenshot and have done more builds since but it stays in the short lived branches


You can’t change a branch’s type, once established. You’re going to have to delete it and then re-analyze.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.