I need to make develop branch as long live branch so that full code analysis can happen

Template for a good new topic, formatted with Markdown:

  • ALM used Bitbucket Cloud, Azure DevOps
  • CI system used Azure DevOps
  • Languages of the repository - JAVA

develop branch is our main branch but sonarclod considers it as short lived branch. We need to change develop branch as long lived branch so that full code analysis can happen. Please guid to accomplolish this

Hi and welcome,

In the “Branches and pull request” menu under “Administration” of your project, you have in the top right corner a “Long living branches pattern” where you can edit the regex to target more branches names. Just manage to have develop here, you should be good to go.

HTH,
Mickaël

Thankyou for your respnse. This allows me to do changes at project level. I want to implement this change at org level so that all the repo being analyzed by default considers develop branch as long lived and performs analysis on whole code

I’m afraid, this is not currently possible.

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