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

Jobs got stuck during execution on agents

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • Jenkins 2.261
    • Jenkins 2.262

      With the newest update of jenkins 2.261, my builds started to never finish  .

      Pipelines builds or classical builds all stay stucked indefinitely on the warning analysis step.

       

      Classical build(when arriving to the post build steps):

      // code placeholder
      05:45:54 [Cobertura] Setting Build to unstable.
      05:45:54 [Cobertura] Setting Build to unstable.
      05:45:54 
      08:13:44 ERROR: Build step failed with exception
      08:13:44 java.lang.InterruptedException
      08:13:44  at java.lang.Object.wait(Native Method)
      08:13:44  at hudson.remoting.Request.call(Request.java:176)
      08:13:44  at hudson.remoting.Channel.call(Channel.java:1000)
      08:13:44  at hudson.FilePath.act(FilePath.java:1070)
      08:13:44  at hudson.FilePath.act(FilePath.java:1059)
      08:13:44  at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scanInWorkspace(ReportScanningTool.java:149)
      08:13:44 Caused: edu.hm.hafner.analysis.ParsingCanceledException: Canceling parsing since build has been aborted.
      08:13:44  at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scanInWorkspace(ReportScanningTool.java:159)
      08:13:44  at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:131)
      08:13:44  at io.jenkins.plugins.analysis.core.steps.IssuesScanner.scan(IssuesScanner.java:101)
      08:13:44  at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.scanWithTool(IssuesRecorder.java:681)
      08:13:44  at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:646)
      08:13:44  at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:617)
      08:13:44  at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:595)
      08:13:44  at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      08:13:44  at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      08:13:44  at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:753)
      08:13:44  at hudson.model.Build$BuildExecution.post2(Build.java:177)
      08:13:44  at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:698)
      08:13:44  at hudson.model.Run.execute(Run.java:1932)
      08:13:44  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      08:13:44  at hudson.model.ResourceController.execute(ResourceController.java:97)
      08:13:44  at hudson.model.Executor.run(Executor.java:428)
      08:13:44 Build step 'Record compiler warnings and static analysis results' marked build as failure
      

       

      And a pipeline build:

      [Pipeline] recordIssuesAborted by 
       C.dric
      [Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] }[Pipeline] // timestamps[Pipeline] End of Pipeline[Checks API] No suitable checks publisher found.
       java.lang.InterruptedException
       at java.lang.Object.wait(Native Method)
       at hudson.remoting.Request.call(Request.java:176)
       at hudson.remoting.Channel.call(Channel.java:1000)
       at hudson.FilePath.act(FilePath.java:1070)
       at hudson.FilePath.act(FilePath.java:1059)
       at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scanInWorkspace(ReportScanningTool.java:149)
       Caused: edu.hm.hafner.analysis.ParsingCanceledException: Canceling parsing since build has been aborted.
       at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scanInWorkspace(ReportScanningTool.java:159)
       at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:131)
       at io.jenkins.plugins.analysis.core.steps.IssuesScanner.scan(IssuesScanner.java:101)
       at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.scanWithTool(IssuesRecorder.java:681)
       at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:646)
       at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:617)
       at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:1024)
       at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:985)
       at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
       Finished: ABORTED
      

      I had to abot those builds manually after a few hours for the first and about 30 minutes for the second. Of course, those parts were done previously very fast.

       

      Downgrading to jenkins 2.260 fixes the problem.

            oleg_nenashev Oleg Nenashev
            cdric cdric julien
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: