Don't know chef myself, but IIRC it's Ruby so you could probably query a URL under /userContent for a file you dropped yourself. And loop for say max 90 until it's there, or fail?
See https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins if you don't know that directory. HTH Le 28 juil. 2016 1:16 AM, "Liora Milbaum" <[email protected]> a écrit : > My chef cookbook deploys Jenkins and few plugins. A restart is required > after the plugins are installed. > It takes few seconds to the service coming back. Till than, no additional > configuration can be executed on that Jenkins service. > The easiest way is to sleep for lets say 60 seconds and than continue as > usual. > But, there must be another way to deal with it. Something like looping > till a heartbeat is received. > > Any idea how it can be implemented? > > Thanks, > Liora > > > > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/d80728b1-09a0-40d1-ad7a-3dbfcad74577%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/d80728b1-09a0-40d1-ad7a-3dbfcad74577%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7aMoD_S%3DQYLgZ9NpaoaH9CJqPa9xDHwn2KG5BHKz1JxA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
