}
Map<String, String> originalVersions = projectHelper.getOriginalVersions("release", releaseProjects);
getLogger().info("running jgitflow release finish...");
ReleaseMergeResult mergeResult = flow.releaseFinish(releaseLabel)
.setPush(ctx.isPushReleases())
.setKeepBranch(ctx.isKeepBranch())
.setNoTag(ctx.isNoTag())
.setSquash(ctx.isSquash())
.setMessage(ReleaseUtil.interpolate(ctx.getTagMessage(), rootProject.getModel()))
.setAllowUntracked(ctx.isAllowUntracked())
.setNoMerge(ctx.isNoReleaseMerge())
.setScmMessagePrefix(ctx.getScmCommentPrefix())
.call();
if(!mergeResult.wasSuccessful())
{
if(mergeResult.masterHasProblems())
{
getLogger().error("Error merging into " + flow.getMasterBranchName() + ":");
getLogger().error(mergeResult.getMasterResult().toString());
getLogger().error("see .git/jgitflow.log for more info");
}
if(mergeResult.developHasProblems())
{
getLogger().error("Error merging into " + flow.getDevelopBranchName() + ":");
getLogger().error(mergeResult.getDevelopResult().toString());
getLogger().error("see .git/jgitflow.log for more info");
}
throw new JGitFlowReleaseException("Error while merging release!");
}