public abstract class GitIntegrationStrategy extends IntegrationStrategy implements IntegrationStrategyAsGitPluginExt
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 integrationBranch.
|
org.eclipse.jgit.lib.PersonIdent |
getPersonIdent(String identity)
Creates a PersonIdent object from a full Git identity string.
|
protected boolean |
tryFastForward(org.eclipse.jgit.lib.ObjectId commitId,
PrintStream logger,
org.jenkinsci.plugins.gitclient.GitClient client)
Attempts to fast-forward merge the integration integrationBranch to the ready
integrationBranch.
|
protected boolean |
tryRebase(org.eclipse.jgit.lib.ObjectId commitId,
org.jenkinsci.plugins.gitclient.GitClient client,
PrintStream logger,
String integrationBranch)
Attempts to rebase the ready integrationBranch onto the integration
integrationBranch.
|
all, getDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
integrate
public org.eclipse.jgit.lib.PersonIdent getPersonIdent(String identity)
identity
- The Git identity string to parse. ex.: 'john Doe
Joh@praqma.net 1442321765 +0200'protected boolean tryRebase(org.eclipse.jgit.lib.ObjectId commitId, org.jenkinsci.plugins.gitclient.GitClient client, PrintStream logger, String integrationBranch) throws IntegrationFailedException, IntegrationUnknownFailureException
commitId
- The sha1 from the polled integrationBranchclient
- The GitClientintegrationBranch
- The integrationBranch which the commitId need to be
merged tologger
- The PrintstreamIntegrationFailedException
- When commit counting or rebasing
failsIntegrationUnknownFailureException
- An unforseen failureprotected boolean tryFastForward(org.eclipse.jgit.lib.ObjectId commitId, PrintStream logger, org.jenkinsci.plugins.gitclient.GitClient client)
commitId
- The commitcommitCount
- The amount of commitslogger
- The logger for console loggingclient
- The GitClientprotected boolean containsRemoteBranch(org.jenkinsci.plugins.gitclient.GitClient client, hudson.plugins.git.Branch branch) throws IntegrationFailedException
client
- the Git Clientbranch
- the integrationBranch to look forIntegrationFailedException
- when the Git call failed unexpectedlyCopyright © 2016–2022. All rights reserved.