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

PowerShell Core has renamed the binary from powershell to pwsh

      The PowerShell plugin was updated to work with PowerShell Core pre-release version.  However, before ship of PS Core 6.0.0 the team renamed the binary from powershell to pwsh.  I have created a PR to fix this - https://github.com/jenkinsci/powershell-plugin/pull/9

      There doesn't seem to be much activity on this GitHub repo.  Just wondering if someone is monitoring PRs over there.  If so, it would be great if you could accept the above PR and push a new version of the plugin.

      BTW given that the plugin will then really support both Windows PowerShell and PowerShell Core.  Perhaps we should consider renaming the plugin (and the step title text) to simply "PowerShell"?

          [JENKINS-49443] PowerShell Core has renamed the binary from powershell to pwsh

          JT Moree added a comment -

          Is there no push to get native powershell core in jenkins?   Why is there a two trackers for this plugin?  Is anyone paying attention to either?

          Based on the linked patch pwsh would be used on all platforms but our jenkins install still natively calls powershell.  We are jumping through hoops to try to get the correct code to run.  Embedded calls through two different powershells and then on to sql are a real PITA.

          JT Moree added a comment - Is there no push to get native powershell core in jenkins?   Why is there a two trackers for this plugin?  Is anyone paying attention to either? Based on the linked patch pwsh would be used on all platforms but our jenkins install still natively calls powershell.  We are jumping through hoops to try to get the correct code to run.  Embedded calls through two different powershells and then on to sql are a real PITA.

            Unassigned Unassigned
            r_keith_hill Keith Hill
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: