[
https://issues.jenkins-ci.org/browse/JENKINS-14068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163810#comment-163810
]
bap commented on JENKINS-14068:
-------------------------------
You dont need a shell - use the "Not" condition with the "File exists"
condition and the action is "Set build status".
> 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,
> flexible_publish_does_not_have_set_the_build_state.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