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

XUnit does not store threshold mode in config.xml

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • xunit-plugin
    • Linux, SunOS, hp-ux

      Setting threshold mode in xunit plugin to "Use a percent of tests" works only for a while.
      After some time (24h) the setting is set to "Use a number of tests" (first from top).
      I have noticed that this setting is not stored in config.xml and probably that is root cause of such behaviour.

          [JENKINS-14517] XUnit does not store threshold mode in config.xml

          I can't reproduce your problem.
          I think it is a configuration error because all seem to be OK.
          Could you check and isolate the problem.
          Do not hesitate to reopen the issue if the problem persists.
          Thanks

          Gregory Boissinot added a comment - I can't reproduce your problem. I think it is a configuration error because all seem to be OK. Could you check and isolate the problem. Do not hesitate to reopen the issue if the problem persists. Thanks

          to reproduce the problem:

          1. Set the threshold mode to "Use percentage of tests" in some job
          2. Apply settings
          3. Restart jenkins
          4. Go to the job's configuration to check that the setting is lost

          Marek Gruszkowski added a comment - to reproduce the problem: 1. Set the threshold mode to "Use percentage of tests" in some job 2. Apply settings 3. Restart jenkins 4. Go to the job's configuration to check that the setting is lost

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/com/thalesgroup/hudson/plugins/xunit/XUnitPublisher.java
          src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java
          src/main/java/org/jenkinsci/plugins/xunit/threshold/XUnitThreshold.java
          src/main/java/org/jenkinsci/plugins/xunit/types/JUnitInputMetric.java
          src/main/resources/org/jenkinsci/plugins/xunit/XUnitPublisher/config.jelly
          http://jenkins-ci.org/commit/xunit-plugin/4f2ab0fb82a567904906e306bc22497ac1cf793d
          Log:
          Fix JENKINS-14517

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/com/thalesgroup/hudson/plugins/xunit/XUnitPublisher.java src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java src/main/java/org/jenkinsci/plugins/xunit/threshold/XUnitThreshold.java src/main/java/org/jenkinsci/plugins/xunit/types/JUnitInputMetric.java src/main/resources/org/jenkinsci/plugins/xunit/XUnitPublisher/config.jelly http://jenkins-ci.org/commit/xunit-plugin/4f2ab0fb82a567904906e306bc22497ac1cf793d Log: Fix JENKINS-14517

            ozan Ozan Turgut
            gruszkow Marek Gruszkowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: