This step run some utilities to check the quality of your code, scans the results, and upload them to your Sonarqube server.
Reference it in your bitrise.yml
with the git::PUBLIC-GIT-CLONE-URL@BRANCH
step reference style:
- git::https://github.com/neopixl/bitrise-step-sonarqube-ios:
inputs:
- project_key: client-project
- exclusions: "**/*.xml,Pods/**/*,Reports/**/*"
The project_key
and exclusions
are editable as well with the Bitrise UI, as well as other options (Swiftlint, tests, etc.)
In order to upload results to you Sonar server, a secret environment variable is required:
$SONAR_HOST_LOGIN
, containing the authorization token for your server.
- Fork this repository
git clone
it- Create a branch you'll work on
- To use/test the step just follow the How to use this Step section
- Do the changes you want to
- Run/test the step before sending your contribution
- You can also test the step in your
bitrise
project, either on your Mac or on bitrise.io - You just have to replace the step ID in your project's
bitrise.yml
with either a relative path, or with a git URL format - (relative) path format: instead of
- original-step-id:
use- path::./relative/path/of/script/on/your/Mac:
- direct git URL format: instead of
- original-step-id:
use- git::https://github.com/user/step.git@branch:
- You can find more example of alternative step referencing at: https://github.com/bitrise-io/bitrise/blob/master/_examples/tutorials/steps-and-workflows/bitrise.yml
- Once you're done just commit your changes & create a Pull Request