CherryPickCopyOption copyOption = new CherryPickCopyOption(orderedCommits);
String outcome = "unknown";
try {
logger.debug("Cherry pick command execution");
ioService.copy(fromBranchPath, toBranchPath, copyOption);
outcome = "success";
} catch (Exception e) {
outcome = "failure : " + e.getMessage();
logger.error("Error when cherry picking commits from {} to {}", fromBranchName, toBranchName, e);