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

Cobertura Publisher does not keep settings when used in flexible-publish

    Details

    • Similar Issues:

      Description

      I am using Run Condition Plugin to run cobertura only on weekends.
      So I also need to use Flexible-Publish to run Publish Cobertura Coverage Report only on weekends.

      I installed flexible-publish and manually created a Flexible-Publish post-build action.
      I then manually copied the details from my original Publish Cobertura Coverage Report action into the flexible-publish version and hit save.

      The <targets> tags are empty in the Flexible-Publish version. If I add them via config.xml and then reload them via Jenkins, everything is fine. However, if I then save my project, the <targts> tags become empty again.

      BEFORE:

             <healthyTarget>
              <targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric">
                <entry>
                  <hudson.plugins.cobertura.targets.CoverageMetric>CONDITIONAL</hudson.plugins.cobertura.targets.CoverageMetric>
                  <int>74</int>
                </entry>
                <entry>
                  <hudson.plugins.cobertura.targets.CoverageMetric>LINE</hudson.plugins.cobertura.targets.CoverageMetric>
                  <int>67</int>
                </entry>
                <entry>
                  <hudson.plugins.cobertura.targets.CoverageMetric>METHOD</hudson.plugins.cobertura.targets.CoverageMetric>
                  <int>64</int>
                </entry>
              </targets>
            </healthyTarget>
            <unhealthyTarget>
              <targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric">
                <entry>
                  <hudson.plugins.cobertura.targets.CoverageMetric>CONDITIONAL</hudson.plugins.cobertura.targets.CoverageMetric>
                  <int>0</int>
                </entry>
                <entry>
                  <hudson.plugins.cobertura.targets.CoverageMetric>LINE</hudson.plugins.cobertura.targets.CoverageMetric>
                  <int>0</int>
                </entry>
                <entry>
                  <hudson.plugins.cobertura.targets.CoverageMetric>METHOD</hudson.plugins.cobertura.targets.CoverageMetric>
                  <int>0</int>
                </entry>
              </targets>
            </unhealthyTarget>
            <failingTarget>
              <targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric">
                <entry>
                  <hudson.plugins.cobertura.targets.CoverageMetric>CONDITIONAL</hudson.plugins.cobertura.targets.CoverageMetric>
                  <int>0</int>
                </entry>
                <entry>
                  <hudson.plugins.cobertura.targets.CoverageMetric>LINE</hudson.plugins.cobertura.targets.CoverageMetric>
                  <int>0</int>
                </entry>
                <entry>
                  <hudson.plugins.cobertura.targets.CoverageMetric>METHOD</hudson.plugins.cobertura.targets.CoverageMetric>
                  <int>0</int>
                </entry>
              </targets>
            </failingTarget>
      

      After

                  <healthyTarget>
                    <targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric"/>
                  </healthyTarget>
                  <unhealthyTarget>
                    <targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric"/>
                  </unhealthyTarget>
                  <failingTarget>
                    <targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric"/>
                  </failingTarget>
      

        Attachments

          Issue Links

            Activity

            capnkeelhauler Capn Keelhauler created issue -
            bap bap made changes -
            Field Original Value New Value
            Component/s cobertura [ 15500 ]
            bap bap made changes -
            Assignee bap [ bap ] stephenconnolly [ stephenconnolly ]
            ikedam ikedam made changes -
            Link This issue depends on JENKINS-19494 [ JENKINS-19494 ]
            ikedam ikedam made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Assignee stephenconnolly [ stephenconnolly ] ikedam [ ikedam ]
            Resolution Fixed [ 1 ]
            ikedam ikedam made changes -
            Assignee ikedam [ ikedam ] Capn Keelhauler [ capnkeelhauler ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 145090 ] JNJira + In-Review [ 191347 ]

              People

              • Assignee:
                capnkeelhauler Capn Keelhauler
                Reporter:
                capnkeelhauler Capn Keelhauler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: