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.

          [JENKINS-32017] workflow plugin sh hangs on windows node

          steve sides created issue -
          steve sides made changes -
          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.
          Jesse Glick made changes -
          Component/s New: durable-task-plugin [ 18622 ]
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Labels New: windows workflow
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 167490 ] New: JNJira + In-Review [ 182758 ]
          Andrew Bayer made changes -
          Labels Original: windows workflow New: pipeline windows workflow
          Andrew Bayer made changes -
          Labels Original: pipeline windows workflow New: pipeline windows
          Jochen Ulrich made changes -
          Link New: This issue is related to JENKINS-33708 [ JENKINS-33708 ]
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-40225 [ JENKINS-40225 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            jglick Jesse Glick
            ssides steve sides
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: