-
Bug
-
Resolution: Not A Defect
-
Major
-
None
To reproduce:
Run? File exists
File: file.html
Base directory: Workspace
On evaluation failure: "Mark the build unstable"
Action: Publish HTML reports
HTML Directory to archive: <empty>
Index page: file.html
Report Title: HTML Report
Keep passed HTML report: unchecked
Sample console output:
Started by user anonymous Building in workspace /home/deepchip/.jenkins/jobs/deepchip-test/workspace Run condition [File exists] enabling prebuild for step [Publish HTML reports] [workspace] $ /bin/bash /tmp/hudson8053411243245269594.sh /mnt/homes/home/deepchip/.jenkins/jobs/deepchip-test/workspace Run condition [File exists] preventing perform for step [Publish HTML reports] Finished: SUCCESS
It finished with SUCCESS, it should be UNSTABLE.
- is duplicated by
-
JENKINS-14296 Doesn't mark build as unstable or failed if run condition fails
-
- Resolved
-
- is related to
-
JENKINS-34971 Conditional build step plugin does not mark build a s unstable
-
- Open
-
The "File exists" condition was successfully evaluated (to false)
The result of evaluating a Run condition is binary. The "On evaluation failure" allows you to choose what happens if the condition failed to discover whether the file exists or not.
If you want to mark the build unstable when the file does not exist you can add another conditional action, and select "Set the build status" from the Fail the Build Plugin https://wiki.jenkins-ci.org/display/JENKINS/Fail+The+Build+Plugin