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 best solutions below
Related Questions in AZURE-DEVOPS
- Pushing to git repository hosted by Visual studio online without entering user name and password
- Generate folder structure of a changeset after checkin in VSO
- OpsHub Visual Studio Online Migration Utility Hangs on Creating Configuration
- Could not write destination file: Access to path 'd:\a\src\...\Web.config' is denied
- hosted build visual studio online
- VSTS Rest API Get WorkItems By Field Value
- xunit.runner.dnx on visual studio online no tests found
- OpsHub User Mapping Error
- Kick off mocha tests in Visual Studio Team Services Build
- Visual Studio Online - Build - There are agents that are capable of running the build, but they are not online
- on-premise TFS to VSO issues using OpsHub 1.2.0.000
- Git tag at the end of build on Visual Studio Online (Build vNext, hosted pool)
- Get Latest Version using command-line from VSO?
- Visual Studio Team Services workspace error
- How to cache credentials for VS online in posh-git?
Related Questions in SONARQUBE
- How to specify SonarQube rule description as a markdown/html resource file instead of using annotation?
- No 'Code Coverage' decorations in SonarQube 5.1+
- Upgrade H2 from sonarqube 4.5.1 to 5.1.1
- Logging error when executing Maven SonarQube plugin
- Analysis fails on PHP project with NullPointerException, fails on foreach($arrayOfArrays as list($item1, $item2)) {}
- Sonarqube ghost projects in issues
- Sonnar runner in Jenkins error in java project
- Reports missing on SonarQube dashboard after upgrade
- Exception in SonarQube.Msbuild.Runner
- How can I integrate ReSharper's Dotsettings File in SonarQube?
- Upgrade from SonarQube 4.3.2 to 4.5LTS (No Response)
- Properties file exclude multiple paths
- Technical debt on custom web rule in sonarqube 5.1
- sonar project.properties to ignore files containing a regular expression
- Sonarqube SVN Plugin fails with code E155007 'is not a working copy'
Related Questions in AZURE-PIPELINES
- Kick off mocha tests in Visual Studio Team Services Build
- TFS 2017 build as code
- vsts build fails on Microsoft.AspNet.Identity.EntityFramework
- Issue with visual studio build agent behind a proxy
- VSTS build: replace string in linked file before packing
- Azure Powershell VSO agent task not failing for non-zero exit code
- Accessing variables in VSTS for release name format
- Visual Studio Team Services - build definition - fail on more warnings, or on less tests
- npm install needs authentication in VSTS hosted build
- Can ExtensionDataService be used from a PowerShell-based VSTS build task?
- VSTS intermittently nuget package restore fails
- Setting up Build Pipeline for Azure Bot Service/Azure Functions solution in VSTS Build
- Continuous deployment to Azure of ASP.NET Core app
- Modify TFS 2015 BuildNumber during build process
- Save Screenshot to folder in root directory VSTS
Related Questions in DEVOPS
- Error when adding a new build stage on Bluemix DevOps Services
- Capistrano current/ directory doesn't get created
- Using puppet to create a lvm with dynamic size
- Jenkins - (private subnet) WebHook with Github does not trigger automatic build
- How to automate the creation of a vCAP user-defined variable in a Bluemix deployment?
- Jenkins - Webhooks OR PollSCM
- Iterating over EncryptedDataBagItem in Chef Recipe
- add newly created AWS EC2 IP to Ansible inventory at runtime
- JazzHub and Bitbucket
- Continuous Deployment with Bitbucket and Jazzhub
- Jenkins - Access to build logs, artifacts, git-commit change logs of upstream builds
- Chef - difference between knife.rb and solo.rb
- What tools are there to visualise the merge structure of dozens of git branches?
- Using attributes in Chef
- Ansible error message
Related Questions in SONARCLOUD
- Is there any SonarCloud API that can retrieve historical trend of issue by severity?
- SonarCloud requiring code coverage for files ignored with Istanbul
- java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found but 0 C/C++/Objective-C files were analyzed
- 3rd-party tool for analysis converts its report to the Generic Issues format in sonarcloud
- Merge python and javascript coverage to appear in one SonarCloud key
- The SonarCloud scan is analyzing the default master branch instead of the develop branch
- How to make this Code SonarClud Compliant
- Sonarcloud analysis report capture in the azure pipeline
- Azure Devops Run SonarCloud Analysis for .Net Project
- Problems with SonarCloud
- SonarCloud in GitHub doesn't recognise C# 12 primary constructors
- Sonar cloud does not reflect the code coverage information for maven project with Azure CICD pipeline
- Error SonarCloud with openjdk8 during pipeline gitlab-ci in java
- How to exclude test classes form Coverage Analysis using Jacoco
- SonarCloud and specific rules for NodeJS project within repository code
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)
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?
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.