public class SquashCommitStrategy extends GitIntegrationStrategy
Modifier and Type | Class and Description |
---|---|
static class |
SquashCommitStrategy.DescriptorImpl
Descriptor implementation for SquashCommitStrategy
|
Constructor and Description |
---|
SquashCommitStrategy()
Constructor for SquashCommitStrategy.
|
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 client,
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 SquashCommitStrategy()
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 client, hudson.model.TaskListener listener, hudson.plugins.git.Revision marked, hudson.plugins.git.Revision rev, GitBridge gitbridge) throws IntegrationFailedException, IntegrationUnknownFailureException, NothingToDoException, UnsupportedConfigurationException
IntegrationStrategyAsGitPluginExt
scm
- Current GIT scmbuild
- The Buildclient
- current git clientlistener
- The BuildListenermarked
- marked revision for use in GitExtensionsrev
- revision fgitbridge
- the gitbridgeIntegrationFailedException
- The integration failed ala mergeNothingToDoException
- The triggered revision is behind the integrationUnsupportedConfigurationException
- You have a combination that is not supported, like the type of jobIntegrationUnknownFailureException
Copyright © 2016–2018. All rights reserved.