As part of my precheckin workflow in Gerrit I want to configure sonarqube to perform scan on the submitted patch, I am using sonar-gerrit plugin in my Jenkins and configured gerrit-trigger to run this analysis job. This job is configured with preview mode and runs analysis but the the analysis happens on the repository which doesn’t include the submitted patchset. How can i ensure to run the analysis on the patchset?
Can i do sonar scan on the Gerrit patch?
452 Views Asked by Raghavendra Pathi At
1
There are 1 best solutions below
Related Questions in JENKINS
- Shellscript touch command not working in jenkins pipeline
- Jenkins Docker Agent Configuration Issue: Connection Refused on Local Ubuntu Install
- How to add more input text box in dynamicreferenceparameter in jenkins
- Jenkins pipeline script: Accept merge request from Gitlab
- Jenkins Exec Format Error while cloning repo
- Post checkmarx scan weblink on the Jenkins Build status page
- Exclude a file from merging to the main branch
- Created Jenkins pipeline and added the script in the Pipeline Description.To check out the Project from the svn repository.NotWorking. Any Suggestion
- How to write a Jenkins Pipeline script to fetch needed repo?
- trouble to trigger Jenkins job
- Unable to start jenkins in amazon linux 2: start request repeated too quickly
- is not a valid Cucumber report! String length (20054016) exceeds the maximum length (20000000)
- Run cleanup function in Python when Jenkins job is aborted
- Jenkins pipeline map is getting converted to an array but it's too large I think?
- How do I list which Jenkins credentials used per pipeline in the script console?
Related Questions in GERRIT
- Is there any way to remove gerrit code review +1 which was given by mistake? can we remove with any command or something?
- Configuring Submodules for GitHub and Gerrit public repo Integration
- AOSP mirroring into local gerrit
- How to run multiple pipelines (in parallel) in Zuul?
- How can I get the change id for the latest Gerrit commit
- How do I get a list of gerrit commits between start and end SHA1 without cloning the project
- How to take or print start and end time of TestJob of zuul ci using ansible?
- Gerrit Local setup for UI issue
- mirroring gitlab repo on to gerrit
- Edit remote reference in Git Config
- Gerrit repo - Files should be pointers
- Concourse integration with Gerrit
- Change default git push to origin HEAD:refs/for/master
- Gerrit shows LDAP: error code 48 - anonymous bind disallowed
- List folders and sub folders of a git branch without checking out from Jenkins Pipeline
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 GERRIT-TRIGGER
- Unable to connect Gerrit to Jenkins with Gerrit Trigger plugin, Connection error: com.jcraft.jsch.JSchException: Auth fail for methods 'publickey'
- ERROR: Checkout failed on Jenkins Gerrit Trigger
- Gerrit Trigger lost connection due to com.jcraft.jsch.JSchAlgoNegoFailException
- Can Gerrit Trigger Plugin send +1 Verify vote to Gerrit commit without triggering Jenkins job?
- Trigger build when the content of specific file merged in gerrit repo
- gerrit triggerOnEvents entire list for groovy script
- jenksinfile to post long comment in multiple lines using gerrits plugin
- jenkins dsl to gerritTrigger based on change in filepath
- How to set order to Gerrit Trigger builds in Jenkins?
- Sonar-Gerrit integration shows error in Jenkins
- Unable to add Gerrit server to Jenkins, With the Gerrit Trigger plugin, "Connection error : com.jcraft.jsch.JSchException: Auth fail"
- jenkins configuration for building on different branches
- GERRIT_REFSPEC not recognized during scm git checkout - Jenkinsfile declarative
- Gerrit Trigger doesn't work when a build is running for that gerrit
- How to configure server in Build Triggers → Gerrit event in job created by Job DSL
Related Questions in SONAR-GERRIT
- jenksinfile to post long comment in multiple lines using gerrits plugin
- sonar pull request analysis is not showing any measures or code
- Sonar pull request analysis is scanning entire repo instead of just the changed files in gerrit git
- Sonar-Gerrit integration shows error in Jenkins
- Sonar-Gerrit Jenkins plugin not reporting issues on Gerrit
- how to checkout git branches jenkins gui edits of last 5 days from master repo
- Incompatibility with Sonar7.7
- SonarToGerrit plugin, how to get use it for multi module project
- Post Sonarqube report in gerrit
- Setting up Sonar-Gerrit plugin : Failed to execute command 'gerrit review ' on UserAtHost
- Sonar-Gerrit Plugin Not reporting Issues in Gerrit
- Sonar Gerrit plugin not posting comments when changedLinesOnly == true
- Sonar Gerrit plugin not reporting results
- Gerrit to Sonar Plugin ignores noIssuesScore
- Sonarqube not reporting results back to Jenkins and Gerrit
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 # Hahtags
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?
Use the "$GERRIT_REFSPEC" variable to configure your job like the following: