简体   繁体   中英

Updating project status under a change in quality gate

I recently used sonarqube api to create a dynamic quality gate, it increases or decreases the acceptable number for the project, according to the number of lines of code, but I'm having some problems ...

It works like this, after the analysis I use the number of lines and calculate the quality gate to increase or lower the acceptable limit

I use the sonar line count itself to avoid mismatching information, but whenever I update a quality gate, the project status is not updated.

For example, if a project was with the quality gate with the status "Passed", after I update the quality gate, it should change the status to "Failed", but it remains "Passed" because I did not perform a new analysis.

How can I request pro sonar to re-execute the project status according to the quality gate change?

I'm using sonarqube 6.0

Thanks

You have no choice but to re-run an analysis if you want your quality gate to be updated.

Just as a side note: it looks like you are trying to hack SonarQube features, I would not recommend to go into that way because you will for sure face problems. Instead, I highly encourage you to read "Water Leak Changes the Game for Technical Debt Management" and consider using the built-in quality gate that puts the focus on new code: this is the best and easiest way to improve code quality over-time with almost no effort and no friction.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM