More verbose code to facilitate debugging.
@@ -143,9 +143,13 @@ public class DeploymentTester {
/** Triggers jobs until nothing more triggers, and returns the number of triggered jobs. */
public int triggerJobs() {
- int triggered = 0;
- while (triggered != (triggered += deploymentTrigger().triggerReadyJobs()));
- return triggered;
+ int triggered;
+ int triggeredTotal = 0;
+ do {
+ triggered = (int)deploymentTrigger().triggerReadyJobs();
+ triggeredTotal += triggered;
+ } while (triggered > 0);
+ return triggeredTotal;
}
}
