public class WorkspaceSnapshotSCM extends SCM
SCM that inherits the workspace from another build through WorkspaceSnapshotExtensionPoint.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, supportsPollingpublic 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.ResolvedFailedExceptionpublic SCMRevisionState calcRevisionsFromBuild(AbstractBuild<?,?> build, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
calcRevisionsFromBuild in class SCMIOExceptionInterruptedExceptionprotected PollingResult compareRemoteRevisionWith(AbstractProject project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState baseline) throws IOException, InterruptedException
compareRemoteRevisionWith in class SCMIOExceptionInterruptedExceptionpublic boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException
checkout in class SCMIOExceptionInterruptedExceptionpublic ChangeLogParser createChangeLogParser()
SCMcreateChangeLogParser in class SCMpublic 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 SCMCopyright © 2019. All rights reserved.