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

PowerShell Core not showing objects

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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 

        Attachments

          Issue Links

            Activity

            dime Dominic S. created issue -
            dime Dominic S. made changes -
            Field Original Value New Value
            Labels core linux powershell pwsh
            dime Dominic S. made changes -
            Link This issue is related to JENKINS-45832 [ JENKINS-45832 ]
            dime Dominic S. made changes -
            Description 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 
            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 Vivek Pandey made changes -
            Labels core linux powershell pwsh core linux powershell pwsh triaged-2018-11
            herrsepp Martin Bauer made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]

              People

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

                Dates

                Created:
                Updated:
                Resolved: