Adding a new project in Sonar v.2.9

I am using sonar to view my code for a java project. The version I am using is v.2.9, I am using sonar for the first time. I do not know how to add a project to a sonar server. Please help with this.

Thanks.

+6
source share
3 answers

There is no way to โ€œaddโ€ a project to Sonar from the Sonar interface. Projects are automatically added to Sonar whenever a successful analysis occurs. I suggest you the following:

Update : Sonarqube allows (I think, after version 5.x) the provision of projects described in their documentation

+15
source

With the administrator role, you can "Submit" the project.

  • Login as administrator
  • Select Settings from the menu
  • Choose System โ†’ Provisioning in the submenu
  • Click Create (in the far right corner of the frame)
+9
source

This is pretty straight forward with the new version. All you have to do is install as a guide. And he will suggest a command that needs to be executed using the build tool in the project folder.

For an example for maven it will be similar to

 mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.login=4aa32e977ab1513e3fe5c3ac0c7883528d01a5e8. 

With a team like these reports, Sonarqube will be sent. And the code analysis will be done

+2
source

Source: https://habr.com/ru/post/948446/


All Articles