java.lang.InterruptedException

Jenkins JIRA | pixman20 | 5 years ago
  1. 0

    After the build times out the final message is "Finished: ABORTED". If there was still a lot of data on the Standard Out stream, then the time out message gets lost in the gobs of text so that it reads: <TEXT> Build timed out (after 3 minutes). Marked the build as aborted. <TONS OF TEXT> Build was aborted Finished: ABORTED In this event, it is not obvious to the users why the build was aborted since the "timed out" message is lost in the remaining standard out text. To add the confusion, if the user views the Jenkins error log to try to determine the cause for the abort, there is an "InterruptedException" that is raised that makes it appear as though Jenkins aborted the build due to an unexpected occurrence. Modifying the Finished message to say something like "Finished: TIMED OUT" would make it very clear to any user why the build stopped regardless of where the other time out message is displayed. Also the exception in the Jenkins error log should be caught if it is an expected error, so that users are not left thinking Jenkins failed unexpectedly. Errr log: INFO: TEST #1 aborted java.lang.InterruptedException at java.lang.ProcessImpl.waitFor(Native Method) at hudson.Proc$LocalProc.join(Proc.java:319) at hudson.Launcher$ProcStarter.join(Launcher.java:336) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:82) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)

    Jenkins JIRA | 5 years ago | pixman20
    java.lang.InterruptedException
  2. 0

    After the build times out the final message is "Finished: ABORTED". If there was still a lot of data on the Standard Out stream, then the time out message gets lost in the gobs of text so that it reads: <TEXT> Build timed out (after 3 minutes). Marked the build as aborted. <TONS OF TEXT> Build was aborted Finished: ABORTED In this event, it is not obvious to the users why the build was aborted since the "timed out" message is lost in the remaining standard out text. To add the confusion, if the user views the Jenkins error log to try to determine the cause for the abort, there is an "InterruptedException" that is raised that makes it appear as though Jenkins aborted the build due to an unexpected occurrence. Modifying the Finished message to say something like "Finished: TIMED OUT" would make it very clear to any user why the build stopped regardless of where the other time out message is displayed. Also the exception in the Jenkins error log should be caught if it is an expected error, so that users are not left thinking Jenkins failed unexpectedly. Errr log: INFO: TEST #1 aborted java.lang.InterruptedException at java.lang.ProcessImpl.waitFor(Native Method) at hudson.Proc$LocalProc.join(Proc.java:319) at hudson.Launcher$ProcStarter.join(Launcher.java:336) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:82) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)

    Jenkins JIRA | 5 years ago | pixman20
    java.lang.InterruptedException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Jenkins Post Build Task does not work when job is aborted

    Stack Overflow | 2 years ago | Willou
    java.lang.InterruptedException
  5. 0

    Jenkins is running on a windows 2003 server In the job config postbuild task part: log text : . script : dir When the job is successed or failed, the postbuild task works fine When the job is aborted (manually stopped or timeout case) I get this kind of logs: Running script :dir [workspace] $ cmd /c call C:\Users\XXX\AppData\Local\Temp\2\hudson13287273761205392.bat Exception when executing the batch command : null Build step 'Post build task' marked build as failure Finished: ABORTED C:\Users\XXX\AppData\Local\Temp\2 is the java.io.tmpdir data I ran a non-stop script listing files in this folder, the temp script hudsonxxxxxxxx.bat is never written in this folder in the jenkins log I have a java exception generated each time a job is aborted : java.lang.InterruptedException at java.lang.ProcessImpl.waitFor(Native Method) at hudson.Proc$LocalProc.join(Proc.java:319) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:82) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480) at hudson.model.Run.run(Run.java:1438) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) It is a main issue in my professional project. From my web research it appears that post build task is supposed to work fine even when the job is aborted

    Jenkins JIRA | 2 years ago | william vilpoix
    java.lang.InterruptedException

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.InterruptedException

      No message provided

      at java.lang.ProcessImpl.waitFor()
    2. Java RT
      ProcessImpl.waitFor
      1. java.lang.ProcessImpl.waitFor(Native Method)
      1 frame
    3. Hudson
      Executor.run
      1. hudson.Proc$LocalProc.join(Proc.java:319)
      2. hudson.Launcher$ProcStarter.join(Launcher.java:336)
      3. hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:82)
      4. hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58)
      5. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      6. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693)
      7. hudson.model.Build$RunnerImpl.build(Build.java:178)
      8. hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      9. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459)
      10. hudson.model.Run.run(Run.java:1376)
      11. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      12. hudson.model.ResourceController.execute(ResourceController.java:88)
      13. hudson.model.Executor.run(Executor.java:230)
      13 frames