To scan the gradle project from jenkins pipeline, do I need sonarscanner jenkins plugin and sonarscanner for gradle plugin? or any one of the plugin is enough?

I’m using the following SonarQube server version - 8.2

I would like to incorporate the static code analyzer stage in the CI pipeline on Jenkins. (Scan should be required from the Jenkins not from the local) I want to know whether I need both the plugins (sonar scanner for Jenkins and sonar scanner for Gradle) or single plugin is enough. Please clarify


Welcome to the community!

You can use either. SonarScanner for Jenkins is a wrapper around other scanners plus added functionality for breaking the build for a failing Quality Gate.


1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.