[snowpatch] [PATCH] jenkins: add wait_build() method to poll Jenkins build status at intervals

Russell Currey ruscur at russell.cc
Wed Apr 20 14:04:15 AEST 2016


On Fri, 2016-04-08 at 17:34 +1000, Andrew Donnellan wrote:
> Right now, after the Jenkins build is triggered, we query the build status
> continuously. This is bad, and it works the CPU rather hard.
> 
> Instead, add a new method to poll every 5 seconds and put the thread to
> sleep in the meantime.
> 
> Closes: #16 ("Don't spin when waiting for Jenkins results")
> Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
> 
> ---

Applied to master as of c1fde4eb1e916d6b4abd4549542cfc644899a3d5, thanks.


More information about the snowpatch mailing list