I have a query with SonaQube analyzing for long lived and short lived branches. Suppose if I have branches main,release,master,feature branches in my azurerepos. I am doing a sonar amaysis on the source code...now if I have created some pull request to merge feature branch to master which has sonar analysis task step in it and haven't yet merged the PR to master branch. Now in SonarUI will the analysis shows for the PR? or the analysis will show only if I merge the PR to master branch? and will sonar UI display all the branches which have sonaranalysis step in the pipeline? or is there any limitation for long lived and short lived branches display in SonarUI? Asking for snarQube 8.0 and 8.5 version
Long lived and Short lived branches query in SonarQube
2.4k Views Asked by priya At
2
There are 2 best solutions below
0
David M. Karr
On
One misconception that I often see is that people think that Sonarqube "actively" scans codebases. SonarQube mostly just sits there and waits for you to ask it to do something. The responsibility for running a scan belongs to your build automation. SonarQube doesn't know when you create feature branches or merge them to target branches. If you want a scan of your feature branch (which I definitely recommend), you have to implement automation between your central git repository and your build system (Jenkins, most likely) that makes that happen.
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 SONARQUBE-SCAN
- How to specify wildcards in sonar-project.properties
- How to scan phtml and embedded javascript files in SonarQube?
- How to show sonar issues as compile time error?
- SonarQube shows projectKey is null, but it is defined in sonar-project.properties
- SonarQube error: Component key length is longer than the maximum authorized
- SonarQube don't show new metrics
- ERROR: No FxCop analysis has been performed on this project, whereas it contains cs files
- SonarQube 6.0 - org.sonar.java.se.ExplodedGraphWalker$MaximumStepsReachedException: reached limit of 16000 steps for method
- SonarQube analysis java and net together
- Unable to run analysis on SonarQube after upgrade to version 6.2
- How To Use The Sonar Maven Plug-in
- Sonar Web Page is not displayed
- SonarQube 5.6 with Java Project (JDK 1.6)
- Sonarqube 6.2 finds only code duplication, no bugs, vulnerabilities or code smells
- SonarQube showing wrong information from clearcase "Blame"
Related Questions in AZURE-REPOS
- Export git history of all files in a specific folder in Azure Repos for a specific date range
- Branch Policies in Azure DevOps
- How can I modify the state a work item is changed to after PR?
- Adding more than one links for a branch/pull request to an User Story in Azure Devops
- In Azure DevOps i like to use a remote Azure Repository for my YAML Pipeline, is this possible?
- AzureDev Repos, how to change target for pull request
- Azure Devops Show all repositories from the project
- Is it possible to create an alias for a repository URL in Azure DevOps?
- How to export Azure DevOps Services Branch Compare result?
- How can I create Build Validations on Azure DevOps branch policies for forks?
- Is there a way to override the Azure Repos name length limit of 64 characters?
- Azure Devops Repos compare file between two branches
- Why does Azure Repos sometimes shows my check-in(s) as Author = '--get.all'?
- How to update azure DevOps build definition source from azure repos to GitHub using rest api
- Trying to import GitLab repository to Azure repository but I am getting the below error
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?
Check documentation here:
https://docs.sonarqube.org/latest/analysis/pull-request/
Which branch you want to analyze, check out which branch in your pipeline. There is a video that shows how SonarQube analyzes Pull Requests:
https://www.sonarqube.org/microsoft-azure-devops-integration/