-
Bug
-
Resolution: Duplicate
-
Blocker
-
windows
sh function on windows hangs.
The simple workflow script is
node( windows-x64 ) {
sh 'uname -a'
}
on the windows node cygwin is installed and on path for the node user.
When run this hangs with the console output showing,
Started by user Steve Sides
[Workflow] Allocate node : Start
Running on scaab053 (Windows 2012 R2) in c:\jenkins\workspace\Workflow_HelloWorld
[Workflow] node {
[Workflow] sh
[c:\jenkins\workspace\Workflow_HelloWorld] Running shell script
...little spinning icon here....
Having to use 'bat' instead of 'sh' would block the project as numerous global functions and DSL's use this.
- duplicates
-
JENKINS-40225 BourneShellScript fails on Cygwin due to use of slashes vs. backslashes
-
- Resolved
-
- is related to
-
JENKINS-33708 Invocation of 'sh' on Windows should provide a more helpful error
-
- Fixed but Unreleased
-
[JENKINS-32017] workflow plugin sh hangs on windows node
Description |
Original:
sh function on windows hangs. The simple workflow script is node( windows-x64 ) { sh 'uname -a' } on the windowns node cygwin installed and on path for node user. When run this hangs with the console output showing, Started by user Steve Sides [Workflow] Allocate node : Start Running on scaab053 (Windows 2012 R2) in c:\jenkins\workspace\Workflow_HelloWorld [Workflow] node { [Workflow] sh [c:\jenkins\workspace\Workflow_HelloWorld] Running shell script ...little spinning icon here.... Having to use 'bat' instead of 'sh' would block the project as numerous global functions and DSL's use this. |
New:
sh function on windows hangs. The simple workflow script is node( windows-x64 ) { sh 'uname -a' } on the windows node cygwin is installed and on path for the node user. When run this hangs with the console output showing, Started by user Steve Sides [Workflow] Allocate node : Start Running on scaab053 (Windows 2012 R2) in c:\jenkins\workspace\Workflow_HelloWorld [Workflow] node { [Workflow] sh [c:\jenkins\workspace\Workflow_HelloWorld] Running shell script ...little spinning icon here.... Having to use 'bat' instead of 'sh' would block the project as numerous global functions and DSL's use this. |
Component/s | New: durable-task-plugin [ 18622 ] | |
Component/s | Original: workflow-plugin [ 18820 ] |
Labels | New: windows workflow |
Workflow | Original: JNJira [ 167490 ] | New: JNJira + In-Review [ 182758 ] |
Labels | Original: windows workflow | New: pipeline windows workflow |
Labels | Original: pipeline windows workflow | New: pipeline windows |
Link |
New:
This issue is related to |
Probably an environmental issue: sh (or system-configured alternate shell) not actually in %PATH%, or wrapper script invocation fails. durable-task plugin needs to report better diagnostics without wasting native threads when all is well. I do not have the resources to personally test on Cygwin specifically.