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 

          [JENKINS-49113] PowerShell Core not showing objects

          Dominic S. created issue -
          Dominic S. made changes -
          Labels New: core linux powershell pwsh
          Dominic S. made changes -
          Link New: This issue is related to JENKINS-45832 [ JENKINS-45832 ]
          Dominic S. made changes -
          Description Original: It seems that not all requires 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 do not have to wait to 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 
          New: 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 
          Vivek Pandey made changes -
          Labels Original: core linux powershell pwsh New: core linux powershell pwsh triaged-2018-11

          Martin Bauer added a comment -

          Martin Bauer added a comment - https://github.com/jenkinsci/powershell-plugin/releases/tag/powershell-1.4 Linux support was released on 1.4
          Martin Bauer made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: