Sahil Minocha (2014-10-16 13:50):
Hi,

I am using Conditional Steps(Multiple) and Steps to run if condition is met. I have a scenario to fail the build if an expression is not found in the Console Output. What I am able to achieve is, I can change the build output when an expression matches using Text FInder, however I need to do the vice-a-versa.
I need to abort/fail the build if the regex does not matches the output.

You can create a file if the condition was met (e.g. file "condition_x_matched"). Then add a Execute shell step and chaeck for the existance of the file. If the file does not exist - fail the build e.g. by doing `exit 1`.

Regards,
Nux

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to