[JIRA] (JENKINS-55264) Threshold Number of tests not working

3 views
Skip to first unread message

maxime.lavocat@orange.com (JIRA)

unread,
Dec 19, 2018, 10:41:02 AM12/19/18
to jenkinsc...@googlegroups.com
Maxime Lavocat created an issue
 
Jenkins / Bug JENKINS-55264
Threshold Number of tests not working
Issue Type: Bug Bug
Assignee: Nalin Makar
Components: testng-plugin
Created: 2018-12-19 15:40
Environment: Windows Server 2012 64bit, Firefox 64, Jenkins 2.150.1, Testng plugin 1.15
Priority: Major Major
Reporter: Maxime Lavocat

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

biangxy@gmail.com (JIRA)

unread,
Feb 25, 2019, 12:34:02 AM2/25/19
to jenkinsc...@googlegroups.com

klynton.fowler@workingtime-solutions.com (JIRA)

unread,
Jun 21, 2019, 6:02:02 AM6/21/19
to jenkinsc...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages