-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.249.2, Windows 10 v2004, PowerShell 7.0.3
See related posts:
https://www.reddit.com/r/jenkinsci/comments/jb6591/powershell_pipeline_example_doesnt_return/
https://www.jenkins.io/blog/2017/07/26/powershell-pipeline/
https://issues.jenkins-ci.org/browse/JENKINS-63944
Basically, the example from the Jenkins blog post on PowerShell does not display the expected output (build failure) when writing an error, despite the output in the blog post clearly showing that the build failed. This issue is present with both PowerShell 5.1 and PowerShell 7 on Windows, I did not test other PowerShell versions or operating systems.
[JENKINS-63945] PowerShell - Errors do not cause build to fail?
Component/s | New: powershell-plugin [ 16044 ] | |
Component/s | Original: core [ 15593 ] |
Attachment | New: image-2021-01-15-11-45-33-112.png [ 53839 ] |
jmcclain as far as I can tell from my test job, Jenkins 2.263.2 is correctly showing the failure of the example:
Can you check again?