private void finishBuildSetTask() { buildConfigSetRecord.setEndTime(new Date()); setStatus(BuildSetStatus.DONE); if (getBuildTaskType().equals(BuildExecutionType.COMPOSED_BUILD)) { try { buildCoordinator.saveBuildConfigSetRecord(buildConfigSetRecord); } catch (CoreException e) { log.error("Unable to save build config set record", e); } } }
/** Create build set task for running a single build or set of builds */ public BuildSetTask( BuildCoordinator buildCoordinator, BuildConfigSetRecord buildConfigSetRecord, BuildExecutionType buildTaskType, ProductMilestone productMilestone) { this.buildCoordinator = buildCoordinator; this.buildConfigSetRecord = buildConfigSetRecord; this.buildTaskType = buildTaskType; this.productMilestone = productMilestone; this.buildSetStatusChangedEventNotifier = buildCoordinator.getBuildSetStatusChangedEventNotifier(); setStatus(BuildSetStatus.NEW); }