Re: Programmatically check if Jenkins service is up and running

2016-07-27 Thread Baptiste Mathus
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 ju

Programmatically check if Jenkins service is up and running

2016-07-27 Thread Liora Milbaum
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 co