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

Cobertura plugin creates non-importable xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Blocker Blocker
    • cobertura-plugin
    • None
    • org.jenkins-ci.main:jenkins-war:1.602
      org.jenkins-ci.plugins:cobertura:1.9.7

      I setup the cobertura coverage report in my iOS jenkins job.
      After I modifying slightly the SCM part and copying xml to jenkins for feature branches.

      Unfortunately all post build actions are lost.
      I've created SO question:
      http://stackoverflow.com/questions/29488210/jenkins-doesnt-load-publishers-section-from-config-xml

      And as suggested I found next error:
      hudson.plugins.cobertura.targets.CoverageMetric.METHOD : No enum const class hudson.plugins.cobertura.targets.CoverageMetric.METHOD ---- Debugging information ---- message : No enum const class hudson.plugins.cobertura.targets.CoverageMetric.METHOD cause-exception : java.lang.IllegalArgumentException cause-message : No enum const class hudson.plugins.cobertura.targets.CoverageMetric.METHOD class : hudson.plugins.cobertura.targets.CoverageMetric required-type : hudson.plugins.cobertura.targets.CoverageMetric converter-type : com.thoughtworks.xstream.converters.enums.EnumConverter path : /project/publishers/hudson.plugins.cobertura.CoberturaPublisher/healthyTarget/targets/entry/hudson.plugins.cobertura.targets.CoverageMetric line number : 3 class[1] : java.util.EnumMap converter-type[1] : com.thoughtworks.xstream.converters.enums.EnumMapConverter -------------------------------, MissingFieldException: No field 'int' found in class 'hudson.plugins.cobertura.targets.CoverageTarget', MissingFieldException: No field 'entry' found in class 'hudson.plugins.cobertura.CoberturaPublisher', MissingFieldException: No field 'entry' found in class 'hudson.plugins.cobertura.CoberturaPublisher', ConversionException: hudson.plugins.cobertura.targets.CoverageTarget cannot be cast to hudson.util.DescribableList : hudson.plugins.cobertura.targets.CoverageTarget cannot be cast to hudson.util.DescribableList ---- Debugging information ---- message : hudson.plugins.cobertura.targets.CoverageTarget cannot be cast to hudson.util.DescribableList cause-exception : java.lang.ClassCastException cause-message : hudson.plugins.cobertura.targets.CoverageTarget cannot be cast to hudson.util.DescribableList class : hudson.util.DescribableList required-type : hudson.plugins.cobertura.targets.CoverageTarget converter-type : hudson.util.DescribableList$ConverterImpl path : /project/publishers/hudson.plugins.cobertura.CoberturaPublisher/healthyTarget line number : 5 -------------------------------, MissingFieldException: No field 'unhealthyTarget' found in class 'hudson.model.FreeStyleProject', MissingFieldException: No field 'failingTarget' found in class 'hudson.model.FreeStyleProject', MissingFieldException: No field 'sourceEncoding' found in class 'hudson.model.FreeStyleProject'

      I'm also attaching original xml

            stephenconnolly Stephen Connolly
            emartynov Eugen Martynov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: