Skip to content

Instantly share code, notes, and snippets.

@dhoer
Last active December 10, 2015 15:39
Show Gist options
  • Save dhoer/c7f0febd2b4d259b7fc8 to your computer and use it in GitHub Desktop.
Save dhoer/c7f0febd2b4d259b7fc8 to your computer and use it in GitHub Desktop.
SonarQube on Jenkins

Sonar not only doesn't follow semantic versioning with their plugins, their documentation is also poor, and the beauty of simply selecting sonar as post-build action to get reports is gone (sorry Jenkins users!).

Here are the steps to get SonarQube to work today:

  1. Remove SonarQube from Post-build Action
  2. Select 'Prepare SonarQube Scanner environment' checkbox under Build Environment
  3. Change Maven 'Goals and options' under Build to: clean org.jacoco:jacoco-maven-plugin:prepare-agent install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment