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

There is already a child [METHOD] ... with the name ... in [CLASS] ...

XMLWordPrintable

      I am facing issues trying to recordCoverage

      recordCoverage(tools: [[parser: 'COBERTURA', pattern: 'Coverage/Report/Cobertura.xml']])

      The report is generated by Unity.

      The problem just recently appeared after an update of Jenkins master from 2.414.1 to 2.414.3 and installing available plugin updates (doing this once a month).

      Plugin works for other pipelines, it only fails recording coverage for those using Unity.

      Output

      10:57:15  Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to <node>
      10:57:15  		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
      10:57:15  		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
      10:57:15  		at hudson.remoting.Channel.call(Channel.java:1000)
      10:57:15  		at hudson.FilePath.act(FilePath.java:1192)
      10:57:15  		at hudson.FilePath.act(FilePath.java:1181)
      10:57:15  		at io.jenkins.plugins.coverage.metrics.steps.CoverageRecorder.recordCoverageResults(CoverageRecorder.java:477)
      10:57:15  		at io.jenkins.plugins.coverage.metrics.steps.CoverageRecorder.perform(CoverageRecorder.java:408)
      10:57:15  		at io.jenkins.plugins.coverage.metrics.steps.CoverageRecorder.perform(CoverageRecorder.java:397)
      10:57:15  		at io.jenkins.plugins.coverage.metrics.steps.CoverageStep$Execution.run(CoverageStep.java:364)
      10:57:15  		at io.jenkins.plugins.coverage.metrics.steps.CoverageStep$Execution.run(CoverageStep.java:332)
      10:57:15  		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      10:57:15  		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      10:57:15  Also:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: ce62a997-1555-488e-9308-321114885098
      10:57:15  java.lang.IllegalArgumentException: There is already a child [METHOD] Transition() <0> with the name Transition() in [CLASS] Core.Handlers.MovementHandler <54, LINE: 33.27% (169/508)>
      10:57:15  	at edu.hm.hafner.coverage.Node.addChild(Node.java:165)
      10:57:15  	at edu.hm.hafner.coverage.parser.CoberturaParser.readClassOrMethod(CoberturaParser.java:189)
      10:57:15  	at edu.hm.hafner.coverage.parser.CoberturaParser.readPackage(CoberturaParser.java:130)
      10:57:15  	at edu.hm.hafner.coverage.parser.CoberturaParser.parseReport(CoberturaParser.java:101)
      10:57:15  	at edu.hm.hafner.coverage.CoverageParser.parse(CoverageParser.java:75)
      10:57:15  	at io.jenkins.plugins.coverage.metrics.steps.CoverageReportScanner.processFile(CoverageReportScanner.java:60)
      10:57:15  	at io.jenkins.plugins.util.AgentFileVisitor.scanFiles(AgentFileVisitor.java:114)
      10:57:15  	at io.jenkins.plugins.util.AgentFileVisitor.invoke(AgentFileVisitor.java:93)
      10:57:15  	at io.jenkins.plugins.util.AgentFileVisitor.invoke(AgentFileVisitor.java:39)
      10:57:15  	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3578)
      10:57:15  	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
      10:57:15  	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      10:57:15  	at hudson.remoting.Request$2.run(Request.java:377)
      10:57:15  	at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
      10:57:15  	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      10:57:15  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      10:57:15  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      10:57:15  	at java.base/java.lang.Thread.run(Thread.java:829)
      

      Is there any chance you can help me resolving the issue? Maybe I can just reset some cache of the pipeline or delete existing coverage records of that pipeline?

      Best,

      Thomas

            drulli Ulli Hafner
            thomashp Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: