Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Since app version 1.6.1, we support incremental mode to speedup the analysis of your pull requests by only passing the changed and new files of a pull request diff to Sonar. You just have to enable "incremental mode" by configuring for which branches it should be used in the Bamboo task as follows:

Image Removed

We also recommend that you enable creating plan branches for pull requests, because only with this mode a full analysis will be prevented when you push a new branch to Bitbucket Server and instead be deferred until the pull request is created:

Image RemovedTo speed up the analysis time, the app supports for Pull requests an Incremental mode.

By running SonarQube analysis only on the diff of the pull request, instead of the complete project.


Configuration:

  1. As a pull request is required for Incremental mode, use the When pull request is created option to Create plan branch in Bamboo.
    1. Otherwise already a push of a new branch to Bitbucket may trigger a full analysis, as no corresponding pull request exists in this moment.
      Image Added
  2. Enable Incremental mode in Bamboo task
    1. Configure for which branches Incremental mode should be used:


Image Added