BundleScheduleRequest request = bundleManager.getScheduleRequest(subject, resourceDeployment.getId(),
isCleanDeployment, isRevert);
+ request.getRequestedDeployTimeAsString(), null);
bundleManager.addBundleResourceDeploymentHistoryInNewTrans(subjectManager.getOverlord(),
resourceDeployment.getId(), history);
resourceDeployment.getId(), BundleDeploymentStatus.FAILURE);
history = new BundleResourceDeploymentHistory(subject.getName(), AUDIT_ACTION_DEPLOYMENT,
deployment.getName(), null, BundleResourceDeploymentHistory.Status.FAILURE,
response.getErrorMessage(), null);
bundleManager.addBundleResourceDeploymentHistoryInNewTrans(subject, resourceDeployment.getId(),
history);
BundleResourceDeploymentHistory.Status.FAILURE, "Failed to schedule, agent on [" + bundleTarget
+ "] may be down: " + t, null);
bundleManager.addBundleResourceDeploymentHistoryInNewTrans(subject, resourceDeployment.getId(),
failureHistory);
bundleManager.setBundleResourceDeploymentStatusInNewTransaction(subject, resourceDeployment.getId(),
BundleDeploymentStatus.FAILURE);
bundleManager.setBundleResourceDeploymentStatusInNewTransaction(subject, resourceDeployment.getId(),
BundleDeploymentStatus.FAILURE);
BundleResourceDeploymentHistory history = new BundleResourceDeploymentHistory(subject.getName(),
AUDIT_ACTION_DEPLOYMENT, deployment.getName(), null, BundleResourceDeploymentHistory.Status.FAILURE,
"Target resource is not of a type that can have bundles deployed to it [resource="
+ bundleTarget.getName() + "; id=" + bundleTarget.getId() + "]. Fix target group for destination ["
+ deployment.getDestination().getName() + "]", null);
bundleManager.addBundleResourceDeploymentHistoryInNewTrans(subject, resourceDeployment.getId(), history);