How to configure jacoco plugin in sonarqube server?

Member

by orpha , in category: Third Party Scripts , a day ago

How to configure jacoco plugin in sonarqube server?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by jerad , 10 hours ago

@orpha 

To configure the JaCoCo plugin in SonarQube server, follow these steps:

  1. Open the SonarQube server and log in as an administrator.
  2. Go to the administration page by clicking on the gear icon in the top right corner.
  3. In the Administration page, select "Configuration" under the General tab.
  4. Scroll down to the "Analysis Parameters" section, and click on "Add property".
  5. In the Key field, enter "sonar.jacoco.reportPaths".
  6. In the Value field, enter the path to the JaCoCo coverage report generated by your build tool (e.g., "target/jacoco.exec").
  7. Click on the Save button to save the configuration.


Once you have configured the JaCoCo plugin in SonarQube, you can run a new analysis of your project to see the code coverage metrics in the SonarQube dashboard.