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

command-line-interface, hudson, jenkins

Solution

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.

Problem

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.

Original source