public abstract class AbstractSCMInterface extends Object implements hudson.model.Describable<AbstractSCMInterface>, hudson.ExtensionPoint
| Constructor and Description |
|---|
AbstractSCMInterface() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.DescriptorExtensionList<AbstractSCMInterface,SCMInterfaceDescriptor<AbstractSCMInterface>> |
all() |
void |
commit(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
hudson.model.Descriptor<AbstractSCMInterface> |
getDescriptor() |
static List<SCMInterfaceDescriptor<?>> |
getDescriptors() |
hudson.model.Result |
getRequiredResult() |
void |
handlePostBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
This is called after the build has run.
|
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,
Commit<?> commit)
This function is called after the SCM plugin has updated the workspace
with remote changes.
|
void |
rollback(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
public hudson.model.Descriptor<AbstractSCMInterface> getDescriptor()
getDescriptor in interface hudson.model.Describable<AbstractSCMInterface>public static hudson.DescriptorExtensionList<AbstractSCMInterface,SCMInterfaceDescriptor<AbstractSCMInterface>> all()
public static List<SCMInterfaceDescriptor<?>> getDescriptors()
public void prepareWorkspace(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
Commit<?> commit)
throws hudson.AbortException,
IOException,
IllegalArgumentException
commit - This commit represents the code that must be checked out.hudson.AbortException - It is not possible to leave the workspace in a
state as described above.IOException - A repository could not be reached.InvalidArgumentException - The given repository is not in a valid
condition.IllegalArgumentExceptionpublic Commit<?> nextCommit(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, Commit<?> commit) throws IOException, IllegalArgumentException
IOException - A repository could not be reached.InvalidArgumentException - The given repository is not in a valid
condition.IllegalArgumentExceptionpublic void commit(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void rollback(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic hudson.model.Result getRequiredResult()
public void handlePostBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
IllegalArgumentException
build - The status of the build.IOException - A repository could not be reached.InvalidArgumentException - The given repository is not in a valid
condition.IllegalArgumentExceptionCopyright © 2004-2013. All Rights Reserved.