[FIXED JENKINS-15806] - Fail build on failed pull
This is an update to pull request #31 and #40
Merge pull request #56 from ben--/master

[FIXED JENKINS-15806] - Fail build on failed pull