-
Bug
-
Resolution: Unresolved
-
Major
-
None
How to repro:
- Create a jenkins job with a Windows Powershell step in the Build.
- In the Windows Powershell Command edit box, type the name of an invalid file
- Execute the job
Expected result:
- Job failed with error "script file not found" or something
Actual
- Job succeeds
Upon checking the console output / logs, yes, we can see that Powershell gave an error, but this is behavior is very dangerous in a production environment. If someone renames or moves the script file without knowing that the Jenkins job needs an update, the CI / CD flow will continue and people will think everything's OK when in fact a Powershell script that maybe was essential to the process did not execute - but reported that it has executed.