A Buildkite plugin to check the SonarQube Quality Gate status for a specified branch.
This plugin requires a SonarQube API token and project key.
Other preinstalled requirements:
Add the following to your pipeline.yml
:
steps:
- command: "echo 'Running SonarQube Quality Gate Check''"
plugins:
- robert-fahey/sonarqube-quality-gate-checker#v1.0:
api_token: "your-sonarqube-api-token"
project_key: "your-sonarqube-project-key"
Your SonarQube API token to authenticate against the SonarQube Quality Gate endpoint.
The key that identifies your SonarQube project.
To run the tests:
docker-compose run --rm shellcheck
docker-compose run --rm tests
- Fork the repo
- Make the changes
- Run the tests
- Commit and push your changes
- Send a pull request