public class WorkspaceSnapshotSCM extends SCM
SCM
that inherits the workspace from another build through WorkspaceSnapshot
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
String |
jobName
The job name from which we inherit the workspace.
|
String |
permalink
The permalink name indicating the build from which to inherit the workspace.
|
PERMISSIONS, TAG
Constructor and Description |
---|
WorkspaceSnapshotSCM(String jobName,
String permalink) |
Modifier and Type | Method and Description |
---|---|
SCMRevisionState |
calcRevisionsFromBuild(AbstractBuild<?,?> build,
Launcher launcher,
TaskListener listener) |
boolean |
checkout(AbstractBuild build,
Launcher launcher,
FilePath workspace,
BuildListener listener,
File changelogFile) |
protected PollingResult |
compareRemoteRevisionWith(AbstractProject project,
Launcher launcher,
FilePath workspace,
TaskListener listener,
SCMRevisionState baseline) |
ChangeLogParser |
createChangeLogParser()
The returned object will be used to parse changelog.xml.
|
SCMDescriptor<?> |
getDescriptor()
Gets the descriptor for this instance.
|
hudson.fsp.WorkspaceSnapshotSCM.Snapshot |
resolve()
Obtains the
WorkspaceSnapshot object that this SCM points to,
or throws WorkspaceSnapshotSCM.ResolvedFailedException upon failing. |
_calcRevisionsFromBuild, _for, _for, all, buildEnvVars, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
public String jobName
public String permalink
public hudson.fsp.WorkspaceSnapshotSCM.Snapshot resolve() throws hudson.fsp.WorkspaceSnapshotSCM.ResolvedFailedException
WorkspaceSnapshot
object that this SCM
points to,
or throws WorkspaceSnapshotSCM.ResolvedFailedException
upon failing.hudson.fsp.WorkspaceSnapshotSCM.ResolvedFailedException
public SCMRevisionState calcRevisionsFromBuild(AbstractBuild<?,?> build, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
calcRevisionsFromBuild
in class SCM
IOException
InterruptedException
protected PollingResult compareRemoteRevisionWith(AbstractProject project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState baseline) throws IOException, InterruptedException
compareRemoteRevisionWith
in class SCM
IOException
InterruptedException
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException
checkout
in class SCM
IOException
InterruptedException
public ChangeLogParser createChangeLogParser()
SCM
createChangeLogParser
in class SCM
public SCMDescriptor<?> getDescriptor()
Describable
Descriptor
is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass()
then by default
a.getDescriptor() == b.getDescriptor()
as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor
in interface Describable<SCM>
getDescriptor
in class SCM
Copyright © 2016. All rights reserved.