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

Threshold Number of tests not working

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: testng-plugin
    • Labels:
      None
    • Environment:
      Windows Server 2012 64bit, Firefox 64, Jenkins 2.150.1, Testng plugin 1.15
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          tdou hubin zhao added a comment -

          same question here!

          Show
          tdou hubin zhao added a comment - same question here!
          Hide
          klynton 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.

          Show
          klynton 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.

            People

            • Assignee:
              nullin Nalin Makar
              Reporter:
              mlavocat Maxime Lavocat
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: