txels / autojenkins

Jenkins automation scripts

Home Page:http://autojenkins.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add function to wait until a build is completed

txels opened this issue · comments

Sometimes it is useful to synchronously run a build from a script, and perform some action upon completion, depending on success or failure.

This can be implemented by adding a method wait_for_build(poll=10), and adding a switch to the build script, e.g. ajk-build -w