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

Powershell step does not run if stdout is not captured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None
    • Windows Server 2012 R2 (amd64)
      Jenkins 2.361.1 LTS

      In a scripted pipeline powershell(script: 'echo hello > file') does not run at all (can check this by checking for the existence of the file). But powershell(script: 'echo hello > file', returnStdout: true) works (ie. the file is created).

      Interestingly this only happens on our slave, not on the master. On the master it works as expected regardless.

      This started happening after upgrading to 2.361.1 LTS from the previous LTS version.

            ridemountainpig Yen Cheng Lin
            0sse Øystein Walle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: