Add check for status of running build
Merge pull request #3 from mnaoumov/master

Detect failing build on the running stage