[JIRA] (JENKINS-60140) Cannot run program "powershell" when powershell 6.0 core installed
Title: Message Title Carroll Chiou closed an issue as Not A Defect Closing as this issue was resolved in workflow-durable-task-step 2.35 Jenkins / JENKINS-60140 Cannot run program "powershell" when powershell 6.0 core installed Change By: Carroll Chiou Status: Open Closed Resolution: Not A Defect Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
[JIRA] (JENKINS-60140) Cannot run program "powershell" when powershell 6.0 core installed
Title: Message Title Jon Brohauge updated an issue Jenkins / JENKINS-60140 Cannot run program "powershell" when powershell 6.0 core installed Change By: Jon Brohauge Having installed Powershell 6.0 Core on our linux agents, there is no longer a program called "powershell". It is called "pwsh", and as such anything calling "powershell" will fail.Example:Fails:{code:java}sh('powershell -version'){code}Works:{code:java}sh('pwsh -version'){code}A possible (I haven't tried) workaround is to make a symbolic link between pwsh -> powershell. {code:java}ln -s /usr/bin/pwsh /usr/bin/powershell{code} Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit
[JIRA] (JENKINS-60140) Cannot run program "powershell" when powershell 6.0 core installed
Title: Message Title Jon Brohauge created an issue Jenkins / JENKINS-60140 Cannot run program "powershell" when powershell 6.0 core installed Issue Type: Bug Assignee: Unassigned Components: durable-task-plugin, powershell-plugin Created: 2019-11-12 08:23 Environment: Jenkins: 2.201 Durable Task Plugin: 1.31 Powershell Plugin: 1.3 Priority: Minor Reporter: Jon Brohauge Having installed Powershell 6.0 Core on our linux agents, there is no longer a program called "powershell". It is called "pwsh", and as such anything calling "powershell" will fail. Example: Fails: sh('powershell -version') Works: sh('pwsh -version') A possible (I haven't tried) workaround is to make a symbolic link between pwsh -> powershell.