Versions Compared

Key

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

...

SonarRunner

In case you are using a Sonar Scanner SonarRunner task in your build, follow these steps:

...

  1. Install Sonar Scanner on Bamboo and Bamboo agents. Ensure you add the Sonar Scanner capability on.

  2. Edit the projects Bamboo build. Add a new Sonar Scanner task.

  3. Copy the settings from the old Sonar Runner to the Sonar Scanner task.

  4. Delete the old Sonar Runner tasks.

...

  1. You will get this error:
    Could not execute task '' no Plugin with key 'ch.mibex.bamboo.sonar4bamboo:sonar4bamboo.maven2task' is installed.

  2. Edit the Build Plan, you see the old task:

  3. Create a Sonar Maven 3 replacement task

  4. If you do not remember some special value, you can look at the old tasks value via Bamboo specs:

  5. Finally, delete the old Sonar Maven 3 task.

Gradle

...

SonarRunner

Running 2.x, Preparing to Upgrade to 3.x

...

  1. In you projects Gradle build.gradle file, remove the Sonarrunner SonarRunner plugin

  2. Add the Gradle Sonar Scanner to your projects build.gradle file

  3. Check the `Use the new Gradle SonarQube plug-in instead of the deprecated Gradle SonarRunner plug-in` option on the Sonar Gradle task:

  4. Save the changed settings

...