• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • None
    • Jenkins 2.138.2

      Reporting error as indicated in the pipeline logs:

      ERROR: [withMaven] WARNING Exception processing the logs generated by the Jenkins Maven Event Spy /home/hudsonagent/jenkins_root/workspace/XWiki_xwiki-platform_master-ZGNMAWOYB6APYNMYWF7HH475RM4M6C6RE2U76Y5M5RWNQJWOLFGA@tmp/withMavenaa64a854/maven-spy-20181016-112527-9765838541643520342520.log, ignore file.  Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
      java.lang.InterruptedException
              at java.lang.Object.wait(Native Method)
              at hudson.remoting.Request.call(Request.java:177)
              at hudson.remoting.Channel.call(Channel.java:954)
              at hudson.FilePath.act(FilePath.java:1071)
              at hudson.FilePath.act(FilePath.java:1060)
              at hudson.FilePath.exists(FilePath.java:1580)
              at org.jenkinsci.plugins.pipeline.maven.publishers.DependenciesFingerprintPublisher.process(DependenciesFingerprintPublisher.java:160)
              at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:118)
              at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$WithMavenStepExecutionCallBack.finished(WithMavenStepExecution.java:1053)
              at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)
              at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:368)
              at com.cloudbees.groovy.cps.impl.ValueBoundContinuation.receive(ValueBoundContinuation.java:21)
              at com.cloudbees.groovy.cps.Block$Noop.eval(Block.java:30)
              at com.cloudbees.groovy.cps.Next.step(Next.java:83)
              at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
              at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
              at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122)
              at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261)
              at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
              at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34)
              at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59)
              at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
              at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58)
              at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:182)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232)
              at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
              at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      

      Thanks

          [JENKINS-54105] Maven Event Spy InterruptedException

          FWIW this is the error we had in https://ci.xwiki.org/job/XWiki/job/xwiki-platform/job/master/1065/ (will be removed in the near future though).

          Vincent Massol added a comment - FWIW this is the error we had in https://ci.xwiki.org/job/XWiki/job/xwiki-platform/job/master/1065/ (will be removed in the near future though).

          Actually seems it's similar to https://issues.jenkins-ci.org/browse/JENKINS-48283 which is still open

          Vincent Massol added a comment - Actually seems it's similar to https://issues.jenkins-ci.org/browse/JENKINS-48283 which is still open

          Cyrille Le Clerc added a comment - - edited

          3.5.15 adds messages to help understand the problem:

          In case of InterruptedException, a message in the logs with the duration since the beginning of the processing is outputted, we want to verify if we have reached the standard timeout of the pipeline steps:

          [withMaven] Processing of Maven build outputs interrupted in " + mavenPublisher.toString() + " after " +
                                              TimeUnit.MILLISECONDS.convert(System.nanoTime() - nanosBefore, TimeUnit.NANOSECONDS) + "ms.
          

          When INFO level is enabled on org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor, a summary of the duration of each publisher is added to the build logs. Sample:

          [withMaven] Publishers: Generated Artifacts Publisher: 36 ms, Junit Publisher: 9 ms, Dependencies Fingerprint Publisher: 6 ms, Pipeline Graph Publisher: 1 ms, Open Task Scanner Publisher: 25 ms
          

          Cyrille Le Clerc added a comment - - edited 3.5.15 adds messages to help understand the problem: In case of InterruptedException , a message in the logs with the duration since the beginning of the processing is outputted, we want to verify if we have reached the standard timeout of the pipeline steps: [withMaven] Processing of Maven build outputs interrupted in " + mavenPublisher.toString() + " after " + TimeUnit.MILLISECONDS.convert(System.nanoTime() - nanosBefore, TimeUnit.NANOSECONDS) + "ms. When INFO level is enabled on org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor , a summary of the duration of each publisher is added to the build logs. Sample: [withMaven] Publishers: Generated Artifacts Publisher: 36 ms, Junit Publisher: 9 ms, Dependencies Fingerprint Publisher: 6 ms, Pipeline Graph Publisher: 1 ms, Open Task Scanner Publisher: 25 ms

          beta version of the pipeline-maven-plugin fixing the InterruptedException is available at https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/pipeline-maven/3.6.5-beta-1/pipeline-maven-3.6.5-beta-1.hpi

          pipeline-maven-3.6.5-beta-1.hpi does NOT require to bump the Step API plugin, it's a standalone fix.

          Cyrille Le Clerc added a comment - beta version of the pipeline-maven-plugin fixing the InterruptedException is available at https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/pipeline-maven/3.6.5-beta-1/pipeline-maven-3.6.5-beta-1.hpi pipeline-maven-3.6.5-beta-1.hpi does NOT require to bump the Step API plugin, it's a standalone fix.

            cleclerc Cyrille Le Clerc
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: