/** {@inheritDoc} */ public void push(String remoteName, String refspec) throws GitException, InterruptedException { proxy.push(remoteName, refspec); }
/** {@inheritDoc} */ public void push(URIish url, String refspec) throws GitException, InterruptedException { proxy.push(url, refspec); }
/** {@inheritDoc} */ public void push(String remoteName, String refspec) throws GitException, InterruptedException { if (Git.USE_CLI) super.push(remoteName, refspec); else jgit.push(remoteName, refspec); }
public void deleteRemoteBranch(final ReleaseRepository releaseRepository, final String branch) throws IOException, InterruptedException { GitClient client = getGitClient(releaseRepository); log(buildListener, String.format("Deleting remote branch '%s' on '%s'", branch, releaseRepository.getGitUri())); client.push(releaseRepository.getRepositoryName(), ":refs/heads/" + branch); }
public void deleteRemoteTag(final ReleaseRepository releaseRepository, final String tag) throws IOException, InterruptedException { GitClient client = getGitClient(releaseRepository); log(buildListener, String.format("Deleting remote tag '%s' from '%s'", tag, releaseRepository.getGitUri())); client.push(releaseRepository.getRepositoryName(), ":refs/tags/" + tag); }
public void push(final ReleaseRepository releaseRepository, final String branch) throws Exception { GitClient client = getGitClient(releaseRepository); log(buildListener, String.format("Pushing branch '%s' to '%s'", branch, releaseRepository.getGitUri())); client.push().tags(true).to(new URIish(releaseRepository.getTargetRepoPrivateUri())) .ref("refs/heads/" + branch).timeout(10).execute(); }
PushCommand push = git.push().to(remoteURI).ref("HEAD:" + mergeTarget); if (forcePush) { push.force(); PushCommand push = git.push().to(remoteURI).ref(tagName); if (forcePush) { push.force(); + targetRepo); remoteURI = remote.getURIs().get(0); PushCommand push = git.push().to(remoteURI).ref("HEAD:" + branchName); if (forcePush) { push.force(); PushCommand push = git.push().to(remoteURI).ref("refs/notes/*"); if (forcePush) { push.force();