Sonar quality profile on command line cannot be replaced by project profile

Looking at our build logs, I see this warning:

build 31-Dec-2015 10:37:39 [WARN] [10: 37: 39.896] The ability to set the quality profile from the command line using "sonar.profile" is deprecated and will be removed in a future version of SonarQube. Please configure the quality profile used by your project on the SonarQube server.

Even if I can easily understand why this might be obsolete, I have a problem with this. We have one SonarQube installation for all our teams. Each team must be compatible with this Quality Gate, but can define its own profile depending on the needs. We work with git branches. We have “static” branches, such as the wizard and development, as well as branches of functions and corrections that are also checked (to ensure the quality of the code before merging). Sonar entries are also created from the command line.

Dsonar.project.branch=${bamboo.planRepository.branch} 

This helps us get one sonar record for each branch of development.

Problem: every time we create a function without a command line, we are forced to switch to Sonar and manually change the profile.

Do you have any suggestions, ideas that can help us?

thanks

+4
1

. , .

- , maven pom.xml.

0

Source: https://habr.com/ru/post/1622328/


All Articles