aosapps / drone-sonar-plugin

The plugin of Drone CI to integrate with SonarQube (previously called Sonar), which is an open source code quality management platform.
MIT License
30 stars 51 forks source link

Gatebreaker #11

Open saitho opened 4 years ago

saitho commented 4 years ago

Resolves #9.

Adds a new option to allow aborting the pipeline when quality gate is not met. If gatebreaker option is enabled, the step will wait until the analysis report was processed by the server and check the state of the quality gate.

The state of the Quality Gate is fetched via the Web API. I'm using a forked and slightly adjusted version of https://github.com/magicsong/sonargo which is needed to work with the current Sonar version.

Container with binary available at https://hub.docker.com/repository/docker/saitho/drone-sonar-plugin

roganw commented 4 years ago

Thanks for your pr. Please fix the conflict before I could merge it.

saitho commented 4 years ago

Hey there,

sorry for the late reply. I rebased the branch, but I wasn't able to test it yet...

I'm now using the official repository of sonargo, as my pull request there was merged. Building the binary locally works fine, but using the Dockerfile it says that it couldn't find the package. :(

fauzanelka commented 3 years ago

Could you merge this ? @roganw

ojenikoh commented 1 year ago

Hello,

@roganw Is there any chance of this being merged anytime soon