• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • testng-plugin
    • None
    • Windows Server 2012 64bit, Firefox 64, Jenkins 2.150.1, Testng plugin 1.15

      When selecting "Number of tests" mode for "Threshold to mark build Failed" and saving, this parameter is not saved. I can check that in the config.xml of the job :

      <thresholdMode>2</thresholdMode>

      Even if I modify manually this parameter by puting "1" in this file, the plugin still uses percent mode threshold.

          [JENKINS-55264] Threshold Number of tests not working

          hubin zhao added a comment -

          same question here!

          hubin zhao added a comment - same question here!

          I'm also experiencing this error.

          However manually changing the value in the XML to 1 does resolve the issue, as long as you restart Jenkins after making the change (Reload Config from Disk doesn't seem to work). But if you ever Configure the job and save changes it will revert back to 2.

           

          As a workaround I've got a quick batch file that auto updates the <thresholdMode> entry in the XML which runs as part of my Jenkins startup.

          Klynton Fowler added a comment - I'm also experiencing this error. However manually changing the value in the XML to 1 does resolve the issue, as long as you restart Jenkins after making the change (Reload Config from Disk doesn't seem to work). But if you ever Configure the job and save changes it will revert back to 2.   As a workaround I've got a quick batch file that auto updates the <thresholdMode> entry in the XML which runs as part of my Jenkins startup.

            Unassigned Unassigned
            mlavocat Maxime Lavocat
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: