Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63945

PowerShell - Errors do not cause build to fail?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • powershell-plugin
    • 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.

            Unassigned Unassigned
            jmcclain Jeffrey McClain
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: