public abstract class AbstractSCMBridge extends Object implements hudson.model.Describable<AbstractSCMBridge>, hudson.ExtensionPoint
Modifier and Type | Field and Description |
---|---|
protected String |
branch |
IntegrationStrategy |
integrationStrategy |
Constructor and Description |
---|
AbstractSCMBridge(IntegrationStrategy integrationStrategy) |
Modifier and Type | Method and Description |
---|---|
static hudson.DescriptorExtensionList<AbstractSCMBridge,SCMBridgeDescriptor<AbstractSCMBridge>> |
all() |
void |
commit(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
deleteIntegratedBranch(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
protected Commit<?> |
determineIntegrationHead(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Override this to associate an integrated commit with a pointer with the starting point before merge.
|
abstract void |
ensureBranch(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
String branch) |
static List<IntegrationStrategyDescriptor<?>> |
getBehaviours() |
String |
getBranch() |
hudson.model.Descriptor<AbstractSCMBridge> |
getDescriptor() |
static List<SCMBridgeDescriptor<?>> |
getDescriptors() |
hudson.model.Result |
getRequiredResult() |
abstract void |
handlePostBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
This is called after the build has run.
|
void |
isApplicable(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
Method that determines if we should prepare workspace for integration.
|
protected void |
mergeChanges(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Default is to use the selected integration strategy
|
Commit<?> |
nextCommit(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
Commit<?> commit)
Calculate and return the next commit from the argument
|
void |
prepareWorkspace(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
This function is called after the SCM plugin has updated the workspace
with remote changes.
|
void |
updateBuildDescription(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
validateConfiguration(hudson.model.AbstractProject<?,?> project) |
protected String branch
public final IntegrationStrategy integrationStrategy
@DataBoundConstructor public AbstractSCMBridge(IntegrationStrategy integrationStrategy)
public String getBranch()
public hudson.model.Descriptor<AbstractSCMBridge> getDescriptor()
getDescriptor
in interface hudson.model.Describable<AbstractSCMBridge>
public static hudson.DescriptorExtensionList<AbstractSCMBridge,SCMBridgeDescriptor<AbstractSCMBridge>> all()
public static List<SCMBridgeDescriptor<?>> getDescriptors()
public static List<IntegrationStrategyDescriptor<?>> getBehaviours()
public void prepareWorkspace(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws EstablishWorkspaceException, NothingToDoException, IntegationFailedExeception, UnsupportedConfigurationException
build
- launcher
- listener
- commit
- This commit represents the code that must be checked out.IntegationFailedExeception
EstablishWorkspaceException
NothingToDoException
UnsupportedConfigurationException
protected void mergeChanges(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws NothingToDoException, IntegationFailedExeception, UnsupportedConfigurationException
build
- launcher
- listener
- commit
- NothingToDoException
IntegationFailedExeception
UnsupportedConfigurationException
public void isApplicable(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener) throws NothingToDoException, UnsupportedConfigurationException
build
- listener
- NothingToDoException
UnsupportedConfigurationException
public abstract void ensureBranch(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, String branch) throws EstablishWorkspaceException
EstablishWorkspaceException
protected Commit<?> determineIntegrationHead(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.TaskListener listener)
build
- launcher
- listener
- public Commit<?> nextCommit(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, Commit<?> commit) throws NextCommitFailureException
build
- launcher
- listener
- commit
- NextCommitFailureException
public void commit(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws CommitChangesFailureException
CommitChangesFailureException
public void deleteIntegratedBranch(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws DeleteIntegratedBranchException, NothingToDoException, UnsupportedConfigurationException
public void updateBuildDescription(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws NothingToDoException, UnsupportedConfigurationException
public hudson.model.Result getRequiredResult()
public abstract void handlePostBuild(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws IOException
build
- The status of the build.launcher
- listener
- IOException
- A repository could not be reached.public void validateConfiguration(hudson.model.AbstractProject<?,?> project) throws UnsupportedConfigurationException
Copyright © 2004–2015. All rights reserved.