[ https://issues.jenkins-ci.org/browse/JENKINS-14068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
bap resolved JENKINS-14068. --------------------------- Resolution: Not A Defect 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 > Mark build unstable does not work > --------------------------------- > > Key: JENKINS-14068 > URL: https://issues.jenkins-ci.org/browse/JENKINS-14068 > Project: Jenkins > Issue Type: Bug > Components: flexible-publish > Affects Versions: current > Reporter: Martin d'Anjou > Assignee: bap > Attachments: flexible_publish_bug.png > > > 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: > {noformat} > 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 > {noformat} > It finished with SUCCESS, it should be UNSTABLE. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira