How to choose a different ruleset e.g. via analysis parameters?

Must-share information (formatted with Markdown):

  • I’m using using (SonarQube Enterprise 8.9.9 LTS)
  • I want to call the scanner to use a different non-default ruleset from a jenkins pipeline:
       stage('sonar') {
            steps {
                sh 'mvn -s $MVN_SET sonar:sonar${SONAR_HOST} \
                    -Dsonar.projectName=${PROJECT_NAME} \
                    -Dsonar.projectVersion=${PROJECT_VERSION} \
                    -DskipTests=true \


Welcome to the community!

You’ll need to assign the project to your non-default Quality Profile via the UI.


1 Like