@Override public String getDisplayName() { return Messages.BuildChooser_Ancestry(); } }
@Override public String getDisplayName() { return Messages.BuildChooser_Default(); }
@Override public String getDisplayName() { return Messages.BuildChooser_Inverse(); } }
listener.getLogger().println(Messages.BuildChooser_Inverse_EverythingExcluded()); listener.getLogger().println(Messages.BuildChooser_BuildingLastRevision()); return Collections.singletonList(buildData.getLastBuiltRevision());
protected List<Branch> parseRefList(List<Ref> refList) { List<Branch> result = new ArrayList<Branch>(); if (CollectionUtils.isNotEmpty(refList)) { for (Ref ref : refList) { Branch buildBranch = new Branch(ref); result.add(buildBranch); listener.getLogger().println(Messages.GitAPI_Branch_BranchInRepoMsg(buildBranch.getName())); } } return result; }
public void deleteBranch(String name) throws GitException { verifyGitRepository(); try { jGitDelegate.branchDelete().setBranchNames(name).call(); } catch (GitAPIException e) { throw new GitException(Messages.GitAPI_Branch_DeleteErrorMsg(name), e); } }
public void branch(String name) throws GitException { verifyGitRepository(); try { jGitDelegate.branchCreate().setName(name).call(); } catch (GitAPIException e) { throw new GitException(Messages.GitAPI_Branch_CreateErrorMsg(name), e); } }
public void checkoutBranch(String branch, String commitish) throws GitException { verifyGitRepository(); try { // First, checkout to detached HEAD, so we can delete the branch. launchCommand("checkout", "-f", commitish); if (null != branch) { jGitDelegate.checkout() .setForce(true) .setStartPoint(commitish) .setName(branch) .setCreateBranch(true) .call(); } } catch (GitAPIException e) { throw new GitException(Messages.GitAPI_Branch_CheckoutErrorMsg(branch, commitish), e); } }
public void commit(String message) throws GitException { verifyGitRepository(); parseEnvVars(getEnvironment()); try { jGitDelegate.commit() .setMessage(message) .setAuthor(getAuthor()) .setCommitter(getCommitter()) .call(); } catch (Exception e) { throw new GitException(Messages.GitAPI_Commit_FailedMsg(message), e); } }