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.
For example, if the condition is not met, Jenkins says:
Checking console output
Run condition [Text Finder] preventing perform for step [BuilderChain]
Finished: SUCCESS
Whereas, if this "Run condition [Text Finder] preventing perform for step [BuilderChain]" arrives, I need to abort/fail the build.
Any help would be appreciated.
Thanks in advance,
Sahil.