Skip to content
Permalink
Browse files

Fix JENKINS-11858

  • Loading branch information...
gboissinot committed Nov 25, 2011
1 parent b26465a commit e74169fafb81ce4364abc7b729ec6298d2e9631d
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/main/java/com/thalesgroup/hudson/plugins/xunit/XUnitPublisher.java
@@ -351,11 +351,13 @@ private Result processResultThreshold(XUnitLog log,
TestResultAction testResultAction,
TestResultAction previousTestResultAction) {

for (XUnitThreshold threshold : thresholds) {
log.infoConsoleLogger(String.format("Check '%s' threshold.", threshold.getDescriptor().getDisplayName()));
Result result = threshold.getResultThreshold(log, build, testResultAction, previousTestResultAction);
if (result.isWorseThan(Result.SUCCESS)) {
return result;
if (thresholds != null) {
for (XUnitThreshold threshold : thresholds) {
log.infoConsoleLogger(String.format("Check '%s' threshold.", threshold.getDescriptor().getDisplayName()));
Result result = threshold.getResultThreshold(log, build, testResultAction, previousTestResultAction);
if (result.isWorseThan(Result.SUCCESS)) {
return result;
}
}
}

0 comments on commit e74169f

Please sign in to comment.
You can’t perform that action at this time.