final String internalTagComment = new StringBuilder()
.append(GitConstants.INTERNAL_TAG_COMMENT_PREFIX)
.append(build.getNumber()).toString();
final BuildData buildData = getBuildData(build.getPreviousBuild(), true);
if (buildData.lastBuild != null) {
listener.getLogger().println("Last Built Revision: " + buildData.lastBuild.revision);
}
EnvVars environment = build.getEnvironment(listener);
String confName = getGitConfigNameToUse();
if (StringUtils.isNotBlank(confName)) {
environment.put(GitConstants.GIT_COMMITTER_NAME_ENV_VAR, confName);
environment.put(GitConstants.GIT_AUTHOR_NAME_ENV_VAR, confName);
}
String confEmail = getGitConfigEmailToUse();
if (StringUtils.isNotBlank(confEmail)) {
environment.put(GitConstants.GIT_COMMITTER_EMAIL_ENV_VAR, confEmail);
environment.put(GitConstants.GIT_AUTHOR_EMAIL_ENV_VAR, confEmail);
}
final String singleBranch = GitUtils.getSingleBranch(build, getRepositories(), getBranches());
final String paramLocalBranch = getParamLocalBranch(build);
Revision tempParentLastBuiltRev = null;
if (build instanceof MatrixRun) {
MatrixBuild parentBuild = ((MatrixRun) build).getParentBuild();
if (parentBuild != null) {
BuildData parentBuildData = parentBuild.getAction(BuildData.class);
if (parentBuildData != null) {
tempParentLastBuiltRev = parentBuildData.getLastBuiltRevision();
}
}
}
final List<RemoteConfig> paramRepos = getParamExpandedRepos(build);