public class PerforceScm
extends hudson.scm.SCM
Modifier and Type | Class and Description |
---|---|
static class |
PerforceScm.DescriptorImpl
The relationship of Descriptor and SCM (the describable) is akin to class
and object.
|
Modifier and Type | Field and Description |
---|---|
static PerforceScm.DescriptorImpl |
DESCRIPTOR |
Constructor and Description |
---|
PerforceScm(String credential,
Workspace workspace,
List<Filter> filter,
Populate populate,
P4Browser browser)
Create a constructor that takes non-transient fields, and add the
annotation @DataBoundConstructor to it.
|
PerforceScm(String credential,
Workspace workspace,
Populate populate) |
Modifier and Type | Method and Description |
---|---|
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Calculate the state of the workspace of the given build.
|
boolean |
checkout(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.FilePath buildWorkspace,
hudson.model.BuildListener listener,
File changelogFile)
The checkout method is expected to check out modified files into the
project workspace.
|
protected hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath buildWorkspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline)
This method does the actual polling and returns a PollingResult.
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
The checkout method should, besides checking out the modified files,
write a changelog.xml file that contains the changes for a certain build.
|
P4Browser |
getBrowser() |
String |
getCredential() |
hudson.scm.SCMDescriptor<PerforceScm> |
getDescriptor()
Returns the ScmDescriptor> for the SCM object.
|
List<Filter> |
getFilter() |
Populate |
getPopulate() |
Workspace |
getWorkspace() |
boolean |
processWorkspaceBeforeDeletion(hudson.model.AbstractProject<?,?> project,
hudson.FilePath buildWorkspace,
hudson.model.Node node)
Called before a workspace is deleted on the given node, to provide SCM an
opportunity to perform clean up.
|
boolean |
requiresWorkspaceForPolling()
This method should return true if the SCM requires a workspace for
polling.
|
boolean |
supportsPolling()
This methods determines if the SCM plugin can be used for polling
|
public static final PerforceScm.DescriptorImpl DESCRIPTOR
@DataBoundConstructor public PerforceScm(String credential, Workspace workspace, List<Filter> filter, Populate populate, P4Browser browser)
public String getCredential()
public Workspace getWorkspace()
public Populate getPopulate()
public P4Browser getBrowser()
getBrowser
in class hudson.scm.SCM
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException, InterruptedException
calcRevisionsFromBuild
in class hudson.scm.SCM
IOException
InterruptedException
protected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project, hudson.Launcher launcher, hudson.FilePath buildWorkspace, hudson.model.TaskListener listener, hudson.scm.SCMRevisionState baseline) throws IOException, InterruptedException
compareRemoteRevisionWith
in class hudson.scm.SCM
IOException
InterruptedException
public boolean checkout(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.FilePath buildWorkspace, hudson.model.BuildListener listener, File changelogFile) throws IOException, InterruptedException
checkout
in class hudson.scm.SCM
IOException
InterruptedException
public hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser
in class hudson.scm.SCM
public boolean processWorkspaceBeforeDeletion(hudson.model.AbstractProject<?,?> project, hudson.FilePath buildWorkspace, hudson.model.Node node)
processWorkspaceBeforeDeletion
in class hudson.scm.SCM
public hudson.scm.SCMDescriptor<PerforceScm> getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.scm.SCM>
getDescriptor
in class hudson.scm.SCM
public boolean supportsPolling()
supportsPolling
in class hudson.scm.SCM
public boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling
in class hudson.scm.SCM
Copyright © 2004-2014. All Rights Reserved.