public abstract class GitIntegrationStrategy extends IntegrationStrategy
| Constructor and Description |
|---|
GitIntegrationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsRemoteBranch(org.jenkinsci.plugins.gitclient.GitClient client,
hudson.plugins.git.Branch branch)
Checks whether or not we can find the given remote branch.
|
org.eclipse.jgit.lib.PersonIdent |
getPersonIdent(String identity)
Creates a PersonIdent object from a full Git identity string.
|
protected boolean |
tryFastForward(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
GitBridge bridge)
Attempts to fast-forward merge the integration branch to the ready branch.
|
protected boolean |
tryRebase(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
GitBridge bridge)
Attempts to rebase the ready branch onto the integration branch.
|
all, getDescriptor, integratepublic org.eclipse.jgit.lib.PersonIdent getPersonIdent(String identity)
identity - The Git identity string to parse. ex.: john Doe protected boolean tryRebase(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
GitBridge bridge)
throws IntegrationFailedException
build - The Buildlauncher - The Launcherlistener - The BuildListenerbridge - The GitBridgeIntegrationFailedException - When commit counting or rebasing failsprotected boolean tryFastForward(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
GitBridge bridge)
throws IntegrationFailedException
build - The Buildlauncher - The Launcherlistener - The BuildListenerbridge - The GitBridgeIntegrationFailedException - When commit counting failsprotected boolean containsRemoteBranch(org.jenkinsci.plugins.gitclient.GitClient client,
hudson.plugins.git.Branch branch)
throws IntegrationFailedException
client - the Git Clientbranch - the branch to look forIntegrationFailedException - when the Git call failed unexpectedlyCopyright © 2004–2016. All rights reserved.