flow = jGitFlowProvider.gitFlow();
JGitFlowReporter reporter = flow.getReporter();
MavenProject originalRootProject = ReleaseUtil.getRootProject(reactorProjects);
getLogger().info("running jgitflow release finish...");
ReleaseMergeResult mergeResult = flow.releaseFinish(releaseLabel)
.setPush(ctx.isPushReleases())
.setKeepBranch(ctx.isKeepBranch())
.setNoTag(ctx.isNoTag())
.setSquash(ctx.isSquash())
.setAllowUntracked(ctx.isAllowUntracked())
.setNoMerge(ctx.isNoReleaseMerge())
.setScmMessagePrefix(ctx.getScmCommentPrefix())
.setScmMessageSuffix(ctx.getScmCommentSuffix())
.setExtension(finishExtension)
.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 MavenJGitFlowException("Error while merging release!");
}