How can I change the main branch to develop so that it directly publishes results on the SonarCloud dashboard, displaying the number of lines of code scanned, without the need to check the branch separately for viewing the results?
The SonarCloud scan is analyzing the default master branch instead of the develop branch
1k views Asked by Darshan C At
2
There are 2 answers
Related Questions in AZURE-DEVOPS
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Error: VS800075 when downloading artifact from another project
- Azure Scale Sets and Parallel Jobs
- Get current Timestamp in CET format and concatenate with string in yml file
- Post-Job Checkout Hanging in Azure DevOps Pipelines
- Referencing yml file from submodule in main pipeline
- Where to find a User Story draft?
- Self Hosted Agent service startup getting failed on VM restart
- Azure pipeline unable to deploy via a bicep file and set values for its parameters
- Dacpac deployment to Azure via SSMS failed: Cannot alter the role db_owner
- NodeJS [Errno 13] Permission denied - Azure DevOps pipleline AWS Lambda deployment
- Share variables across stages in azure pipelines with templates
- Can I move an Azure Data Factory Pipeline to Azure DevOps?
- How to migrate a single workitem in Devops
- Deploy Docker Image into AKS cluster using Azure Release Pipelines with the parameters like clustername, acr, resourcegroup
Related Questions in SONARQUBE
- Sonarqube not allowing me to set policy for S3 bucket
- Jacoco Coverage in Multi-Module Gradle Project Not Including Submodules
- How to solve sonarqube issue based on bug to return a copy
- Java Code Coverage with both Jacoco & SonarQube
- Sonar qube i installed is not working and it show "...... Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED"
- SonarLint vs code error of skipping files
- Sonar qube container cannot authenticate with token
- Is there a Sonar-Elixir plugin compatible with SonarQube 10.4.1?
- Error: LinkageError occurred while loading main class org.sonarsource.scanner.cli.Main
- SonarQube: False-Positive S100 - Method names should comply with a naming convention
- Sonarcloud - Sonar warning - Accept button - "Valid issue but won't be fixed now, it's acceptable for a while."
- What refactoring should I apply on this email validation regex?
- Flutter SonarQube: "The main branch has no lines of code."
- SonarScan not recognising python code at the source directory
- How is this passing the quality gate
Related Questions in AZURE-PIPELINES
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Get current Timestamp in CET format and concatenate with string in yml file
- Post-Job Checkout Hanging in Azure DevOps Pipelines
- What changed from xcode 13.2.1 to 14.2 that would affect an app's entitlements?
- Azure pipeline unable to deploy via a bicep file and set values for its parameters
- NodeJS [Errno 13] Permission denied - Azure DevOps pipleline AWS Lambda deployment
- To can I reference the error code of a failed step in an Azure pipeline
- Share variables across stages in azure pipelines with templates
- Deploy Docker Image into AKS cluster using Azure Release Pipelines with the parameters like clustername, acr, resourcegroup
- Getting CI/CD error on biulding step in React Azure Pipeline
- Custom Conditions in Azure Pipelines break ability to cancel
- Why multiple azure pipelines are being triggered although I am triggering only once?
- Devops passing output from one job template step to another job template step
- Integrate Deployment status to Work Items in TFS
- Because my api, after publishing through the AzureDevops pipeline in flurl methods, the entryPointNotFoundException exception is occurring
Related Questions in DEVOPS
- Elasticbeanstalk FastAPI application is intermittently not responding to https requests
- Get current Timestamp in CET format and concatenate with string in yml file
- AWS EKS Fargate pod scheduling issue with Prometheus deployment
- Jenkins Docker Agent Configuration Issue: Connection Refused on Local Ubuntu Install
- Unable to use env variable from prd environment context
- Search to know the best way to do a " Database on demand " for a personal project
- Can I know the namespace of my k8s Pod only by looking at its IP?
- Struggling with Route53 public hosted zones in a multi-account environment
- "Backend call failure" error in Nextjs App deployed on Azure static web app
- Terraform: Error: Provider configuration not present. Module gets created, but when I remove or comment it throws an error
- Azure Dev Ops - Project - Mentions - Restrictions on Users and Groups
- How to Generate a Migration Script in the Azure DevOps
- Disable Azure DevOps Pull Request being completed when Using Copado
- How to add bulk users ( using a csv file ) to an AzureDevops Group using Powershell
- How to add .env file while deploying app using Jenkins Pipeline script from SCM?
Related Questions in SONARCLOUD
- how to analyse a project in sonarcloud
- Sonarcloud - Sonar warning - Accept button - "Valid issue but won't be fixed now, it's acceptable for a while."
- Unable to Publish Code Coverage Report into Sonar Cloud. Use of OpenCover.Console.exe and Vstest.console.exe
- Sonar warning S6857: Correct this malformed property placeholder - is this a false positive?
- How to get the exact Operator from SonarCloud for the Conditions in QualityGate?
- Sonarcloud giving uncovered lines for interface
- SonarCloud How to fix change this code to not construct the path from user-controlled data
- Sonar scan not the scanning project after java version updated from 11 to 17
- Sonarcloud code coverage for pull request with bitrise
- In azure Devops, Run on unit Test on Multi-Agent, how to collect the code coverage file and Publish into Artifact
- How to get weekly unit test coverage report in powerbi desktop from sonar cloud
- SonarCloud shows 0.0% coverage on new code, and it's 0.0% coverage on the project as well
- using sonarcloud for junit analysis fails when the source code version is jdk1.8 but sonarcloud uses jdk17
- Publishing Javascrpt/typescript code coverage to Sonarcloud not working with Azure Pipeline
- Azure Pipeline for SonarCloud analysis using Gradle is successful but no results are published
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You cannot change which branch is treated as the main branch on sonarcloud as per the sonarsourcer replied here.
But to display the result on overview page, checked on my side with DevOps pipeline, if you change the
dev1branch as default branch(commitc44b781b):After pipeline(SonarCloudAnalyze@1 and SonarCloudPublish@1 tasks), on the sonarcloud overview page, it will show the result correctly. Although on sonar cloud -> branches page, it will show master as main branch.