Status: Resolved (View Workflow)
Resolution: Not A Defect
Jenkins official debian package 1.575
Conditional buildstep plugin 1.3.3
I'm testing this plugin and the string comparisson I'm doing seems to work fine.
However I would like to cancel the build if the comparisson doesn't match. It actually cancels the build but it always ends as Success. I've tried the "on evaluation failure" options "falid the build" and "mark the build unstable" but it always ends as success.
Although the build is actually cancelled I would really need it to be marked as failed so it doesn't cause confussion to the person executing the build.
This is the text it appears in the output:
Run condition [Strings match] preventing perform for step [BuilderChain]
- is blocked by
JENKINS-34971 Conditional build step plugin does not mark build a s unstable
Workaround: Add another conditional buildstep with inverted condition that runs a shell/batch step with exit 1.
is it possible for me to mark the status as "ABORTED" or "SKIPPED" (show a grey ball in status) instead of the default "SUCCESS"? (blue ball)
Not a defect:
"Evaluation failure" means that an error occurs when testing the condition (e.g. matching a syntactically invalid regular expression). This is different from match / mismatch of the string.