...
SonarRunner
In case you are using a Sonar Scanner
SonarRunner
task in your build, follow these steps:
...
Install Sonar Scanner on Bamboo and Bamboo agents. Ensure you add the Sonar Scanner capability on.
Edit the projects Bamboo build. Add a new
Sonar Scanner
task.Copy the settings from the old
Sonar Runner
to theSonar Scanner
task.Delete the old
Sonar Runner
tasks.
...
You will get this error:
Could not execute task '' no Plugin with key 'ch.mibex.bamboo.sonar4bamboo:sonar4bamboo.maven2task' is installed.Edit the Build Plan, you see the old task:
Create a
Sonar Maven 3
replacement taskIf you do not remember some special value, you can look at the old tasks value via Bamboo specs:
Finally, delete the old
Sonar Maven 3
task.
Gradle
...
SonarRunner
Running 2.x, Preparing to Upgrade to 3.x
...
In you projects Gradle
build.gradle
file, remove the Sonarrunner SonarRunner pluginAdd the Gradle Sonar Scanner to your projects
build.gradle
fileCheck the `
Use the new Gradle SonarQube plug-in instead of the deprecated Gradle SonarRunner plug-in
` option on the Sonar Gradle task:Save the changed settings
...