If you need to stop further build steps after running the Sphinx tool, I will be releasing a new text finder run condition later today.
Which when released will allow you to use the Conditional Buildstep plugin to prevent other build steps from running based on the same RegExp and also failing/marking build unstable. https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin https://wiki.jenkins-ci.org/display/JENKINS/Text+Finder+Run+Condition+Plugin Chris On Friday, July 13, 2012 9:37:58 AM UTC+1, (unknown) wrote: > > https://wiki.jenkins-ci.org/display/JENKINS/Text-finder+Plugin > Works for us. > Matthew > > > -----Original Message----- > > From: jenkinsci-users@googlegroups.com [mailto: > jenkinsci-users@googlegroups.com] On Behalf Of Chris > > Withers > > Sent: 13 July 2012 07:10 > > To: jenkinsci-users@googlegroups.com > > Subject: How can I get a job to fail when a regex matches in the output? > > > > Hi All, > > > > I use the Sphinx tool to build documentation for my projects and I'm > > trying to get Jenkins jobs running that build all the docs as commits > > are made so that I can check I haven't committed any breaks to the > > documentation and also to have a development version of the docs online. > > > > Unfortunately, even when there are errors or warnings, Sphinx returns an > > exit code of 0, which the Shell builder considers to be okay. > > > > How can I get this job to fail when there are certain phrases > > (Error|Warning) in the output of running sphinx_build? > > > > cheers, > > > > Chris > > > > -- > > Simplistix - Content Management, Batch Processing & Python Consulting > > - http://www.simplistix.co.uk > > -- > This e-mail and any attachments may contain confidential, copyright and or > privileged material, and are for the use of the intended addressee only. If > you are not the intended addressee or an authorised recipient of the > addressee please notify us of receipt by returning the e-mail and do not > use, copy, retain, distribute or disclose the information in or attached to > the e-mail. > Any opinions expressed within this e-mail are those of the individual and > not necessarily of Diamond Light Source Ltd. > Diamond Light Source Ltd. cannot guarantee that this e-mail or any > attachments are free from viruses and we cannot accept liability for any > damage which you may sustain as a result of software viruses which may be > transmitted in or with the message. > Diamond Light Source Limited (company no. 4375679). Registered in England > and Wales with its registered office at Diamond House, Harwell Science and > Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom > > > > >