Sonar-Gerrit integration shows error in Jenkins

84 Views Asked by At

There is a Jenkins freestyle job that is triggered by some Gerrit events.In response to triggers, it downloads the changes and runs a Sonarqube Analysis. The Sonarqube comments detailing the results are to be posted on Gerrit after the analysis is complete.This is the expected behaviour.

As of now, In Jenkins, the Sonarqube execution is success. But the build is failed mentioning the error " *ERROR: Build step failed with exception java.lang.IllegalArgumentException: Gerrit change number is empty*

Could anyone please help on this?

Reference:https://plugins.jenkins.io/sonar-gerrit/ Followed the same steps as mentioned in the above document.

Jenkins console output

Expected: The Sonarqube should post the comments to the respective Gerrit change,whether the Sonar-verified is +1/-1.

0

There are 0 best solutions below