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
- Set "topic" of multiple patches simultaneously in gerrit
- Store my local gerrit repository in github
- What happens if I push a commit in Gerrit with the change-id of a commit already merged?
- Gerrit as a review tool, not as the repository of record
- LDAP configuration for Gerrit?
- In Gerrit, what does this red dot mean?
- Gerrit JDBC Driver not found
- Disable direct push and allow Gerrit push
- How do I force push a feature-branch to Gerrit?
- Gerrit admininitrator does not access “All-Projects”
- Jenkins changelog is showing all the changes done to the repository instead of last successful build
- Workflow with Gerrit
- Is it possible to configurate gerrit to always send the push requests to refs/for?
- Gerrit not sending emails
- What is the use of auth.restTokenPrivateKey in gerrit's secure.config for?
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 GERRIT-TRIGGER
- Gerrit not sending emails
- What is the use of auth.restTokenPrivateKey in gerrit's secure.config for?
- Jenkins gerrit trigger not fetching my change when building
- How to execute Jenkinsfile with gerrit trigger plugin for changeset in jenkins?
- Repo, gerrit & Jenkins co-working
- How to download one specific gerrit change set in jenkins git plugin?
- how to add gerrit-trigger events inside Jenkins pipeline code, inside Jenkinsfile
- Recognize gerrit trivial rebase as event on jenkins
- Jenkins Gerrit Trigger - "/var/lib/jenkins/.ssh/id_rsa" is not a valid key file
- Avoid report to verified/code-review flag for a specific Jenkins Job
- ERROR: Checkout failed on Jenkins Gerrit Trigger
- Unable to connect Gerrit to Jenkins with Gerrit Trigger plugin, Connection error: com.jcraft.jsch.JSchException: Auth fail for methods 'publickey'
- Sonar-Gerrit Jenkins plugin not reporting issues on Gerrit
- zuul clone gerrit repository when event triggered?how to stop this?
- Gerrit Trigger only once for commits in all projects
Related Questions in SONAR-GERRIT
- What is the use of auth.restTokenPrivateKey in gerrit's secure.config for?
- Sonar-Gerrit Jenkins plugin not reporting issues on Gerrit
- how to checkout git branches jenkins gui edits of last 5 days from master repo
- Sonar-Gerrit integration shows error in Jenkins
- gerrit jenkins integration issue by using sonar gerrit plugin
- Setting up Sonar-Gerrit plugin : Failed to execute command 'gerrit review ' on UserAtHost
- Sonarqube not reporting results back to Jenkins and Gerrit
- Gerrit to Sonar Plugin ignores noIssuesScore
- Sonar pull request analysis is scanning entire repo instead of just the changed files in gerrit git
- sonar pull request analysis is not showing any measures or code
- Post Sonarqube report in gerrit
- SonarToGerrit plugin, how to get use it for multi module project
- Http connection unauthorized in gerrit trigger
- Scoring in Code-Review gerrit category is not happening
- Gerrit build posting comments from post build actions in Jenkins
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?
Use the "$GERRIT_REFSPEC" variable to configure your job like the following: