public class AccumulatedCommitStrategy extends GitIntegrationStrategy
Modifier and Type | Class and Description |
---|---|
static class |
AccumulatedCommitStrategy.DescriptorImpl
Descriptor implementation for AccumulatedCommitStrategy
|
Constructor and Description |
---|
AccumulatedCommitStrategy()
Constructor for AccumulatedCommitStrategy.
|
Modifier and Type | Method and Description |
---|---|
void |
integrate(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
AbstractSCMBridge bridge)
Integrates the commits into the integration integrationBranch.
|
void |
integrateAsGitPluginExt(hudson.plugins.git.GitSCM scm,
hudson.model.Run<?,?> build,
org.jenkinsci.plugins.gitclient.GitClient git,
hudson.model.TaskListener listener,
hudson.plugins.git.Revision marked,
hudson.plugins.git.Revision rev,
GitBridge gitbridge)
Integrates the commits into the integration integrationBranch.
|
containsRemoteBranch, getPersonIdent, tryFastForward, tryRebase
all, getDescriptor
@DataBoundConstructor public AccumulatedCommitStrategy()
public void integrate(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, AbstractSCMBridge bridge) throws IntegrationFailedException, IntegrationUnknownFailureException, NothingToDoException, UnsupportedConfigurationException
integrate
in class IntegrationStrategy
build
- The Buildlauncher
- The Launcherlistener
- The BuildListenerbridge
- The SCM BridgeIntegrationFailedException
- When integration failsIntegrationUnknownFailureException
- An unforeseen failureNothingToDoException
- The triggered branch/commit is already a part of the integration branchUnsupportedConfigurationException
- when part of the configuration isn't supportedpublic void integrateAsGitPluginExt(hudson.plugins.git.GitSCM scm, hudson.model.Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, hudson.model.TaskListener listener, hudson.plugins.git.Revision marked, hudson.plugins.git.Revision rev, GitBridge gitbridge) throws NothingToDoException, IntegrationFailedException, IOException, InterruptedException
IntegrationStrategyAsGitPluginExt
scm
- Current GIT scmbuild
- The Buildgit
- current git clientlistener
- The BuildListenermarked
- marked revision for use in GitExtensionsrev
- revision fgitbridge
- the gitbridgeNothingToDoException
- The triggered revision is behind the integrationIntegrationFailedException
- The integration failed ala mergeUnsupportedConfigurationException
- You have a combination that is not supported, like the type of jobIOException
- Unforeseen IO problemsInterruptedException
- Unforeseen problemsCopyright © 2016–2018. All rights reserved.