-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Linux 3.2.0-58-generic, jenkins 1.556
I'm trying to configure a build step to fail the build if a file doesn't exist. I did this by using the File Exists condition, specifying the file of interest, and then selecting advanced and "fail the build" (if condition not met). I also added an "execute shell script" action to echo that the file was found. I saved and ran the build, but the step didn't work as expected – the echo did not happen (the output indicates that this is because the condition was not met), but the build did not fail. I went back into the configuration and saw that the "fail the build" step I added was gone. I tried adding it several times, but it doesn't seem to stick.