To speed up the analysis time, the app supports for Pull requests an Incremental mode.
By running Sonar SonarQube™ analysis only on the diff of the pull request, instead of the complete project.
Configuration:
- As a pull request is required for Incremental mode, use the When pull request is created option to Create plan branch in Bamboo.
- Otherwise already a push of a new branch to Bitbucket may trigger a full analysis, as no corresponding pull request exists in this moment.
- Otherwise already a push of a new branch to Bitbucket may trigger a full analysis, as no corresponding pull request exists in this moment.
- Enable Incremental mode in Bamboo task
- Configure for which branches Incremental mode should be used: