I am using SonarCloud on a .NET project in Azure DevOps. I’m using the “.NET Core with SonarCloud” template. I need to make sure all of the code is scanned on all branches automatically using continuous integration.
When I enable Continuous Integration in Azure DevOps by checking the box, I then need to manually add each branch to the branch filters list.
Surely there must be a way to automatically scan on all branches. For instance, if I could edit the YAML file it would start with:
When you set up the branch filter for CI in Azure DevOps, you can type “*” into the dropdown box instead of selecting a branch. Not the best UI, but this works:
Alternatively, create one dummy branch and set this to Exclude. Then all other current and future branches are included.