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

job stuck when executing shell script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • core
    • None
    • windows 7

      Hi,

      My job gets stuck forever when executing a trivial shell script which simply sets up the execution env:

      [workspace] $ sh -xe "D:\Tomcat 5.5\temp\hudson8794539940981712077.sh"

      Then it hangs there and never returns. When I logon to the host and run above command manually, there is no issue and the shell commands get executed and displayed correctly.

      Couldn't find any clue in the threaddump:

      "Executor #0 for master : executing testlogic-build-ant192 #268" Id=53 Group=main RUNNABLE (in native)
      at java.lang.ProcessImpl.waitForInterruptibly(Native Method)
      at java.lang.ProcessImpl.waitFor(Unknown Source)
      at hudson.Proc$LocalProc.join(Proc.java:319)
      at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:137)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:97)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      at hudson.model.Build$BuildExecution.build(Build.java:203)
      at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      at hudson.model.Run.execute(Run.java:1741)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)

      For a full threaddump, please see the attachement.
      Could anyone suggest what issue this could be?

      Thanks in advance,
      Gan Dong

            Unassigned Unassigned
            gandong Gan Dong
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: