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 -Dsonar.host.url=${SONAR_HOST} \
                    -Dsonar.projectName=${PROJECT_NAME} \
                    -Dsonar.projectVersion=${PROJECT_VERSION} \
                    -DskipTests=true \
                    --no-transfer-progress'
            }
        }

Hi,

Welcome to the community!

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

 
HTH,
Ann

1 Like