Selecting Sonarqube non-default Quality profile in the Jenkins job

I am using Developer Edition of the SonarQube. This is integrated with the Jenkins CI/CD pipeline.

We have multiple Quality Profiles in SonarQube. What we want is to select the specific Quality profile for specific project while executing the Jenkins job. But Jenkins job run only the default quality profile with all the projects. Is there any way in which we can select specific quality profile (non-default) in the Jenkins job?

We have tried using the (POST api/qualityprofiles/add_project) API but it doesnt select the Quality profile very first time when Jenkins job runs.

Thanks! in advance.

Hi,

Welcome to the community!

You can’t select your profiles during analysis, but you can assign your project to a non-default profile via the UI, either from the Quality Profile side or from the Project settings side.

 
HTH,
Ann