The SafeRestart Plugin won't work for me as I need to wait for a period between shutdown and startup. I can't restart immediately.
I think the safe-shutdown command in the CLI/SSH interface will be a better alternative to the quietDown REST API as it will automatically shutdown after all current jobs complete. I think I can detect shutdown through external monitoring. Thanks for the pointers. :-) On 9/3/13 9:38 PM, Richard Bywater wrote: > Or potentially just use the safe-restart command via the CLI/SSH > interface depending on your needs. > > Richard > > On Wednesday, September 4, 2013, Michaėl Pailloncy wrote: > > 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 <[email protected] <javascript:_e({}, > 'cvml', '[email protected]');>> > > 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 > [email protected] > <javascript:_e({}, 'cvml', > 'jenkinsci-users%[email protected]');>. > 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 [email protected] > <javascript:_e({}, 'cvml', > 'jenkinsci-users%[email protected]');>. > 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 [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
