-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins: 2.201
Durable Task Plugin: 1.31
Powershell Plugin: 1.3
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 workaround is to make a symbolic link between pwsh -> powershell.
ln -s /usr/bin/pwsh /usr/bin/powershell
[JENKINS-60140] Cannot run program "powershell" when powershell 6.0 core installed
Description |
Original:
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. |
New:
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 workaround is to make a symbolic link between pwsh -> powershell. {code:java} ln -s /usr/bin/pwsh /usr/bin/powershell{code} |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Closing as this issue was resolved in workflow-durable-task-step 2.35