jenkinsci / jenkinsci/durable-task-plugin

[JENKINS-75884] powershell step should hint towards using pwsh step instead

Open
#519 0 comments 0 reactions 0 assignees View on GitHub
component:durable-task-plugin component:workflow-durable-task-step-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
30
Forks
101
PR merge metrics
No merged PRs in 30d

Description

powershell executable being replaced by pwsh, one could be confused by the current behaviour because there are two different steps for these different executables.

If trying to run a powershell step in an environment where it is not available, you get CreateProcess error=2, The system cannot find the file specified.

If powershell step fails because it could not find the executable, maybe the error message could check whether pwsh is available and hint the user towards using it?

---
Originally reported by vlatombe, imported from: powershell step should hint towards using pwsh step instead


  • status: Open
  • priority: Minor
  • component(s): durable-task-plugin, workflow-durable-task-step-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-09

Raw content of original issue

powershell executable being replaced by pwsh, one could be confused by the current behaviour because there are two different steps for these different executables.

If trying to run a powershell step in an environment where it is not available, you get CreateProcess error=2, The system cannot find the file specified.

If powershell step fails because it could not find the executable, maybe the error message could check whether pwsh is available and hint the user towards using it?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.