Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32017

workflow plugin sh hangs on windows node

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            ssides steve sides created issue -
            ssides steve sides made changes -
            Field Original Value New Value
            Description 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.
            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.
            Hide
            jglick Jesse Glick added a comment -

            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.

            Show
            jglick Jesse Glick added a comment - 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.
            jglick Jesse Glick made changes -
            Component/s durable-task-plugin [ 18622 ]
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Labels windows workflow
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 167490 ] JNJira + In-Review [ 182758 ]
            abayer Andrew Bayer made changes -
            Labels windows workflow pipeline windows workflow
            abayer Andrew Bayer made changes -
            Labels pipeline windows workflow pipeline windows
            julrich Jochen Ulrich made changes -
            Link This issue is related to JENKINS-33708 [ JENKINS-33708 ]
            Hide
            julrich Jochen Ulrich added a comment -

            nohup needs to be on the %PATH% as well. See JENKINS-33708

            Show
            julrich Jochen Ulrich added a comment - nohup needs to be on the %PATH% as well. See JENKINS-33708
            Hide
            jglick Jesse Glick added a comment -

            Sounds like the same environment as JENKINS-40225.

            Show
            jglick Jesse Glick added a comment - Sounds like the same environment as JENKINS-40225 .
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-40225 [ JENKINS-40225 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: