I implemented SonarQube
on the server, and I do most of the configurations remotly. Hence whenever a plugin is installed, a restart of SonarQube
is required and every time I have to explicitly (manually) restart the SonarQube
server.
Is there a way to restart SonarQube
remotely?
For example, like jenkins
through http://sonar_url/restart
.
Restart SonarQube Restarting SonarQube can be done manually from the command line by running sonar.sh restart . In SonarQube Community Edition, you can also restart from the UI, in the Update Center. When you have Pending Changes, the restart button will be displayed in the yellow banner (see Pending Operations).
You need to open Settings window and find Tools > SonarLint there. Then you press the plus button and you will have connection wizard that will ask you all necessary data to configure connection. You will need URL of SonarQube server and login-password pair or token for authorization.
Start or Stop the Service Note: > %SONAR_HOME%\bin\windows-x86-64\SonarService. bat stop does a graceful shutdown where no new analysis report processing can start, but the tasks in progress are allowed to finish. The time a stop will take depends on the processing time of the tasks in progress.
Since SonarQube 5.4, you can restart it directly from the UI (Administrators should be able to request a server restart from web console) or using the WS /api/system/restart (WS /api/system/restart should trigger a true restart of SQ).
POST api/system/restart Since 4.3 Restart server. Available only on development mode (sonar.web.dev=true). Ruby on Rails extensions are not reloaded
Regards,
Michel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With