use of org.jboss.pnc.spi.builddriver.CompletedBuild in project pnc by project-ncl.
the class TermdBuildDriver method complete.
private void complete(TermdRunningBuild termdRunningBuild, RemoteInvocationCompletion completion, FileTransfer fileTransfer) {
if (completion.getException() != null) {
logger.warn("Completed with exception.", completion.getException());
termdRunningBuild.setBuildError(completion.getException());
return;
}
CompletedBuild completedBuild = collectResults(termdRunningBuild.getRunningEnvironment(), completion, fileTransfer);
logger.debug("Command result {}", completedBuild);
if (completedBuild == null) {
termdRunningBuild.setBuildError(new BuildDriverException("Completed build should not be null."));
} else {
termdRunningBuild.setCompletedBuild(completedBuild);
}
}
Aggregations