Hi,

See https://wiki.jenkins-ci.org/display/JENKINS/SafeRestart+Plugin

It seems to correspond to your needs.


Michaël Pailloncy


2013/8/31 Edwin Castro <0ptikgh...@gmx.us>

> Is there a way to determine if there are any builds running using the
> REST API?
>
> I have a need to restart my jenkins service (after waiting for a timeout
> period) and I'd like to implement a graceful shutdown. I'd like to use
> the REST API to invoke quietDown (to prepare Jenkins for shutdown), then
> poll Jenkins with the rest API until there are no more running builds. I
> would stop the Jenkins service after all currently running builds have
> completed.
>
> --
> Edwin G. Castro
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to