How to knock down Jenkins when Mercurial Update fails

I have a Jenkins build that validates code from Mercurial. There was a situation where the Mercurial repository was damaged and the updates failed, but the Jenkins build will continue anyway and will report success. Is Jenkins build failure possible in this case?

+3
source share
1 answer

I had a similar problem using SVN.

Assuming Mercurial displays a warning / error message when updating, you can use the Text Finder plugin: https://wiki.jenkins-ci.org/display/JENKINS/Text-finder+Plugin to parse a warning message and crash if he is found.

, Mercurial , , .

0

All Articles