project.getDisplayName(),
hudson.getRootUrl(),
build.getUrl(),
"console");
} else if (!completed.contains(project)) {
Result result = build.getResult();
String page = "testReport";
if (result.isWorseThan(Result.UNSTABLE)) {
page = "console";
}
logger.printf("[%s] %s (%s%s%s)\n",
result,
project.getDisplayName(),
hudson.getRootUrl(),
build.getUrl(),
page);
MasterBuildCause currentCause =
(MasterBuildCause) build.getCause(MasterBuildCause.class);
int rebuildNumber = currentCause.getRebuildNumber();
if (result.isWorseThan(Result.SUCCESS)
&& rebuildNumber < maxRetries) {
Cause newCause =
new MasterBuildCause(masterBuild, rebuildNumber + 1);
this.masterBuild.rebuild(project, newCause);
projectBuildMap.remove(project);