Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check whether jenkins is fully up and running using webservice ?

I want to know , how to check whether jenkins is fully up and running using webservice ?

i want to use jenkins webservice to check this. Is there any way to do this ?

Thanks.

like image 890
Muthu Avatar asked Jun 12 '12 10:06

Muthu


People also ask

How do I stop Jenkins running on port 8080?

The default is port 8080. To disable (because you're using https), use port -1 . This option does not impact the root URL being generated within Jenkins logic (UI, inbound agent files, etc.). It is defined by the Jenkins URL specified in the global configuration.

How run Jenkins from command line?

Open up a terminal/command prompt window to the download directory. Run the command java -jar jenkins. war . Browse to http://localhost:8080 and wait until the Unlock Jenkins page appears.

Which command can be used to force start Jenkins manually?

jenkins_url/restart - Forces a restart without waiting for builds to complete.

How do I find Jenkins version?

Or on the Jenkins home screen when it is running click the About button and you will see the version number there.


1 Answers

Probably the easiest way would be to perform a simple HTTP get on the Jenkins server root URL. You get a successful status (200) if Jenkins is fully up. If it is not you'll get 503 - Service Temporarily Unavailable (or possibly other errors depending on specific situation).

From the command line you can use a tool such as wget to perform that request.

like image 67
malenkiy_scot Avatar answered Sep 18 '22 14:09

malenkiy_scot