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

PowerShell Core not showing objects

XMLWordPrintable

      It seems that not all required streams are available on linux, it has been working with an earlier version of PowerShell Core but broke with 6.0 release, together with the renaming of the process.

      I've created a symbolic link on my agent to access pwsh via powershell command, so that I can continue using powershell on my linux agents.

      When running a simple step with a linux agent, I receive an empty output, while the same works flawlessly with windows based agents.

      This is not a problem with Get-Process, it involves any function not returning simple text but objects.

       

      Repro:

         powershell 'Get-Process'

       

      Result:

          When running on a Linux agent, I receive empty lines, running on Windows I get the expected result.

      Expected Result:

         I should see a list of processes as table view.

       

       

      I've tried 'Get-Process | Format-Table' aswell with the same result.

       

      Since all commits for powershell core seem only to handle the renaming of the app I opened this 

            Unassigned Unassigned
            dime Dominic S.
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: