The Cobertura coverage report generation fails

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical
    • Component/s: cobertura-plugin
    • None
    • Environment:
      Platform: All, OS: Linux

      The plugin does not work. I have Cobertura successfully generating both HTML and
      XML reports as part of the build. I have the XML pattern set in the plugin
      configuration and it's able to find it successfully. But that's where the magic
      stops.

      Here is the output from the log:Recording test results
      Publishing Cobertura coverage report...
      Publishing Cobertura coverage results...
      FATAL:
      /local/bamboo/.hudson/jobs/MYJOB/cobertura/com/foo/dec/framework/dataAccessServices
      (Is a directory)
      java.io.FileNotFoundException:
      /local/bamboo/.hudson/jobs/MYJOB/cobertura/com/foo/dec/framework/dataAccessServices
      (Is a directory)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
      at hudson.FilePath.write(FilePath.java:600)
      at
      hudson.plugins.cobertura.renderers.SourceCodePainter.paintSourceCode(SourceCodePainter.java:48)
      at
      hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:127)
      at
      hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:28)
      at hudson.FilePath.act(FilePath.java:280)
      at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:250)
      at hudson.model.Build$RunnerImpl.post2(Build.java:138)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:244)
      at hudson.model.Run.run(Run.java:597)
      at hudson.model.Build.run(Build.java:103)
      at hudson.model.ResourceController.execute(ResourceController.java:66)
      at hudson.model.Executor.run(Executor.java:62)

            Assignee:
            Stephen Connolly
            Reporter:
            atifmk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: