On 13.05.2014, at 22:49, Scott Evans <[email protected]> wrote:

> Which works fine.  However, each call of this URL just toggles the current 
> status.  Is there another parameter that I could call that either explicitly 
> tries to take it offline, or put it online?  

Not in this API. The CLI has online-node and offline-node though.

> The reason I ask is that I'm concerned that if my script dies part of the way 
> through, that an agent machine might be left in the wrong state, and the next 
> invocation of the script will flip the status the wrong way, rather than 
> explicitly taking it offline.

GET /computer/foo/api/xml and check the 'temporarilyOffline' element.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to