Installing a SonarQube Plugin Programmatically

1k Views Asked by At

I have a SonarQube service and API deployed in containers as part of my build pipeline. The SonarQube service needs to have the SonarJava plugin installed to understand my code rules.

As it's not an option to manually install this plugin, I'd like to do it through the API.

I saw this post: How to install or uninstall SonarQube plug-ins with HTTP? which seemed helpful, however attempting "POST /api/plugins/install?key=SonarJava" hasn't led to much success.

Thanks in advance.

1

There are 1 best solutions below

0
Sumit Kadian On

Please use /api/plugins/install?key=java, it will automatically install SonarJava plugins.