Long-lived branches configuration in SonarCloud

  • ALM used - Azure DevOps
  • CI system used - Azure DevOps
  • Languages of the repository - C#.net
  • Error observed - We have branched named master, release and develop in our git repos. We tried running scans on these branches but we are not able to see develop and release branches as long-lived branches in SonarCloud. Currently out configuration for long-lived branches is (release|develop)*.

Hey there.

If you configured the long-lived branch pattern after initially scanning the develop branch, you’ll need to delete the branch (in SonarCloud) and reanalyze. At that point, it should take into account the branch pattern you’ve defined.