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

XShell does not kill running process if job is getting aborted



    • Bug
    • Status: In Progress (View Workflow)
    • Critical
    • Resolution: Unresolved
    • xshell-plugin
    • None
    • Jenkins 1.580.1 with XShell 0.9


      As we have seen lately XShell is not able to kill a running process once it is running on the slave, and the user aborts the job on the master machine.

      Current result is that the job is marked as aborted on the master, but it is still running on the client. This totally breaks our testruns because Jenkins thinks the node is free again, and schedules the next job for this node. But given that by our definition only a single job can run on a node, it will fail.

      The Jenkins log shows the following when aborting a job:

      mozilla-aurora_update #2 aborted
      java.lang.InterruptedException: sleep interrupted
      at java.lang.Thread.sleep(Native Method)
      at hudson.plugins.xshell.XShellBuilder.perform(XShellBuilder.java:158)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      at hudson.model.Build$BuildExecution.build(Build.java:199)
      at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
      at hudson.model.Run.execute(Run.java:1684)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:231)


        Issue Links


            whimboo Henrik Skupin created issue -
            whimboo Henrik Skupin made changes -
            Field Original Value New Value
            Remote Link This issue links to "Aborting a build (Web Link)" [ 11911 ]
            jeremym Jeremy Marshall made changes -
            Assignee Jeremy Marshall [ jeremym ]
            jeremym Jeremy Marshall made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 159574 ] JNJira + In-Review [ 185545 ]


              jeremym Jeremy Marshall
              whimboo Henrik Skupin
              0 Vote for this issue
              3 Start watching this issue