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

27 views
Skip to first unread message

Randall R Schulz

unread,
Apr 22, 2011, 12:53:04 PM4/22/11
to jenkins...@googlegroups.com
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

Randall R Schulz

unread,
Apr 23, 2011, 1:23:39 PM4/23/11
to jenkins...@googlegroups.com
Is that a "no"?


RRS

Randall R Schulz

unread,
Apr 28, 2011, 8:16:56 PM4/28/11
to jenkins...@googlegroups.com
No one knows?

Mark Waite

unread,
Apr 28, 2011, 9:21:06 PM4/28/11
to jenkins...@googlegroups.com
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 <rsc...@sonic.net>
To: jenkins...@googlegroups.com
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?

Randall R Schulz

unread,
May 2, 2011, 12:13:30 PM5/2/11
to jenkins...@googlegroups.com
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

Yarden Bar

unread,
Jul 8, 2015, 4:18:37 AM7/8/15
to jenkins...@googlegroups.com
Hi Randall,
How did you accomplish this?
From What I've read, to query '/manage' page for shutdown string, the user accessing Jenkins needs to have Admin rights...

Trying to find a way to access the /manage page without Admin rights....
Reply all
Reply to author
Forward
0 new messages