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 answers
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
- 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 SONARQUBE-SCAN
- Trivy report to sonarqube
- Sonarqube not allowing me to set policy for S3 bucket
- Java Code Coverage with both Jacoco & SonarQube
- SonarLint vs code error of skipping files
- SonarQube: False-Positive S100 - Method names should comply with a naming convention
- Flutter SonarQube: "The main branch has no lines of code."
- How is this passing the quality gate
- Can SonarQube sent notification after scan to group with only email? (without password authentication)
- I am getting the error while building the pipeline in jenkins , My build is getting failed
- How to suppress duplicate code warning in php projects for Sonar Qube scans?
- Dotnet CLI SonarScanner is failing with dotnet 8.0 image
- SonarQube (Self-hosted) Scanning for Next.JS Project
- SonarQube unable to scan
- Sonar scan not the scanning project after java version updated from 11 to 17
- SonarQube 9.9 discrepancy in the scan results
Related Questions in AZURE-REPOS
- Is There Anyway To Retrieve The Label/Tag of a PR After Merged to Main?
- Unable to copy and apply a branch policy from one repo to another repo in azure devops
- Unlink commits/Files during creating a Pull request from One branch to other
- Force Azure DevOps Pull Request update after Manually Update SonarQube issue as Won't Fix
- ignore folder when pull request to master
- Is it possible to acquire an access token for app service with a system-assigned managed identity?
- Unable to view the Complete and set auto complete options in Azure repo Pull request, even though there is no conflicts
- How to Retrieve a List of Azure DevOps Repositories Sharing Similar Branch Policies on their Develop Branch?
- Want to push python file from Azure Repo to Databricks Workspace Using CICD
- Can't push to new branch on azure using git: The file pushed differs in case
- In schema compare, some files erroneously appear as missing in the local DB compared to Azure SQL Server DB. Only a few files are affected, not all
- How to lock a file in Azure Repository
- Release pipeline powershell task to use a file in azure repository for temp download of file (how to story)
- Gitlab flow Long lived environment branches in Mono Repo keeps growing commit log on Pull Request in Azure repos
- Cross Search in all repositories and branches in Azure Devops Repos
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)
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/