Quantcast

Server Status (Paused for Shut-down vs. Running Normally) via HTTP API?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Server Status (Paused for Shut-down vs. Running Normally) via HTTP API?

Randall R Schulz
Hi,

Is it possible to ascertain via one of the HTTP API queries whether a Jenkins server has been put into its preparing-for-shutdown mode?


Randall Schulz
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Server Status (Paused for Shut-down vs. Running Normally) via HTTP API?

Randall R Schulz
Is that a "no"?


RRS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Server Status (Paused for Shut-down vs. Running Normally) via HTTP API?

Randall R Schulz
No one knows?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Server Status (Paused for Shut-down vs. Running Normally) via HTTP API?

Mark Waite
I attempted to find such an API and was unsuccessful.  However, I did not investigate the source code.

If you're willing to read HTTP, you could read the top level page and search for the string that says Jenkins is preparing to shutdown.

Mark Waite


From: Randall R Schulz <[hidden email]>
To: [hidden email]
Sent: Thu, April 28, 2011 6:16:56 PM
Subject: Re: Server Status (Paused for Shut-down vs. Running Normally) via HTTP API?

No one knows?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Server Status (Paused for Shut-down vs. Running Normally) via HTTP API?

Randall R Schulz
Mark,

That's what I ended up doing (scan the "Manage Jenkins" page's HTML, that is). I think it's reliable enough, because I look for the URLs, either .../quietDown or .../cancelQuietDown. So unless those URLs are changed, the detector I wrote will work.


Randall Schulz
Loading...