i am using sonarqube version 6.7 LTS
i am giving sonar.qualitygate=“Test” Test is a customized quality gate defined but my qualitygate is giving error as None
that means sonar.qualitygate property is not working
can you please help me how to give qualitygate
1 Like
Colin
(Colin)
2
The list of valid analysis parameters for your version can be found here: https://docs.sonarqube.org/display/SONARQUBE67/Analysis+Parameters
sonar.qualitygate is not one of them (deprecated and removed a long time ago).
Feel free to assign the Quality Gate to the project in SonarQube itself
thanks for your response
sonar.leak.period is also deprecated that is also not working in 6.7LTS version
i gave in sonarproject properties file
sonar.leak.period=“1.7”
but it is not working it is taking default global BASELINE
ganncamp
(G Ann Campbell)
4
Hi @adithya_kambhampati,
You’ve already created a brand new thread for this new question, so let’s consider this thread closed.
Ann
vsawanny
(Vidya sawanny)
6
sonar.qualitygate is deprecated , what is the alternate to define custom quality gate through code and not from the UI?
ganncamp
(G Ann Campbell)
7
Hi,
You can use the same web services that feed the UI. You’ll find a link to the on-board documentation in the footer of every page.
Ann
I found this thread eventually trying to find a solution to my use case, where the web UI would not be helpful, and additionally I’m hoping to hear a bit more about the reasoning. In case anyone else stumbles on this thread with the same use case, I’ve provided a link to that thread:
Automated scan on new code – How do I specify the quality gate for the first scan to use? - SonarQube - Sonar Community (sonarsource.com)