static List<String> getCommitCommand(String gitUserName, String gitUserEmail, List<String> descriptions, String commitMessagePostfix) { List<String> args = new ArrayList<>(); args.add("git"); args.add("commit"); args.add("--author"); args.add(GitUtil.getGitGenericUserNotation(gitUserName, gitUserEmail)); args.add("-m"); args.add(GitUtil.getCommitMessage(getAggregatedCommitMessage(descriptions), commitMessagePostfix)); return args; } }
public void execute(final ShipkitExecTask t) { t.mustRunAfter(GIT_COMMIT_TASK); final String tag = GitUtil.getTag(conf, project); t.setDescription("Creates new version tag '" + tag + "'"); t.execCommand(execCommand("Creating tag", "git", "tag", "-a", tag, "-m", GitUtil.getCommitMessage("Created new tag " + tag, conf.getGit().getCommitMessagePostfix()))); } });
public void execute(final ShipkitExecTask t) { t.mustRunAfter(GIT_COMMIT_TASK); final String tag = GitUtil.getTag(conf, project); t.setDescription("Creates new version tag '" + tag + "'"); t.execCommand(execCommand("Creating tag", "git", "tag", "-a", tag, "-m", GitUtil.getCommitMessage("Created new tag " + tag, conf.getGit().getCommitMessagePostfix()))); } });
static List<String> getCommitCommand(String gitUserName, String gitUserEmail, List<String> descriptions, String commitMessagePostfix) { List<String> args = new ArrayList<>(); args.add("git"); args.add("commit"); args.add("--author"); args.add(GitUtil.getGitGenericUserNotation(gitUserName, gitUserEmail)); args.add("-m"); args.add(GitUtil.getCommitMessage(getAggregatedCommitMessage(descriptions), commitMessagePostfix)); return args; } }
public void execute(final Exec t) { t.mustRunAfter(GIT_COMMIT_TASK); final String tag = GitUtil.getTag(conf, project); t.setDescription("Creates new version tag '" + tag + "'"); deferredConfiguration(project, new Runnable() { @Override public void run() { t.commandLine("git", "tag", "-a", tag, "-m", GitUtil.getCommitMessage(conf, "Created new tag " + tag)); } }); } });
public void execute(final GitPushTask t) { t.setDescription("Pushes automatically created commits to remote repo."); t.mustRunAfter(GIT_COMMIT_TASK); t.mustRunAfter(GIT_TAG_TASK); t.dependsOn(GitBranchPlugin.IDENTIFY_GIT_BRANCH); t.getTargets().add(GitUtil.getTag(conf, project)); t.setDryRun(conf.isDryRun()); GitPushArgs.setPushUrl(t, conf, System.getenv(WRITE_TOKEN_ENV)); project.getPlugins().apply(GitBranchPlugin.class) .provideBranchTo(t, new Action<String>() { @Override public void execute(String branch) { t.getTargets().add(branch); } }); } });
public void execute(final GitPushTask t) { t.setDescription("Pushes automatically created commits to remote repo."); t.mustRunAfter(GIT_COMMIT_TASK); t.mustRunAfter(GIT_TAG_TASK); t.dependsOn(GitBranchPlugin.IDENTIFY_GIT_BRANCH); t.getTargets().add(GitUtil.getTag(conf, project)); t.setDryRun(conf.isDryRun()); GitUrlInfo info = new GitUrlInfo(conf); t.setUrl(info.getGitUrl()); t.setSecretValue(info.getWriteToken()); project.getPlugins().apply(GitBranchPlugin.class) .provideBranchTo(t, new Action<String>() { @Override public void execute(String branch) { t.getTargets().add(branch); } }); } });
public void execute(final GitPushTask t) { t.setDescription("Pushes automatically created commits to remote repo."); t.mustRunAfter(GIT_COMMIT_TASK); t.mustRunAfter(GIT_TAG_TASK); t.dependsOn(GitBranchPlugin.IDENTIFY_GIT_BRANCH); t.getTargets().add(GitUtil.getTag(conf, project)); t.setDryRun(conf.isDryRun()); GitUrlInfo info = new GitUrlInfo(conf); t.setUrl(info.getGitUrl()); t.setSecretValue(info.getWriteToken()); project.getPlugins().apply(GitBranchPlugin.class) .provideBranchTo(t, new Action<String>() { @Override public void execute(String branch) { t.getTargets().add(branch); } }); } });