BATCH-1123: added break to the loop when a match is found.
This commit is contained in:
@@ -62,6 +62,7 @@ public class ExecutionContextPromotionListener extends StepExecutionListenerSupp
|
||||
for (String statusPattern : statuses) {
|
||||
if (PatternMatcher.match(statusPattern, exitCode)) {
|
||||
this.performPromotion(stepExecution);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user