public class PlasticSCM
extends hudson.scm.SCM
Modifier and Type | Class and Description |
---|---|
static class |
PlasticSCM.DescriptorImpl |
static class |
PlasticSCM.WorkspaceInfo |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BRANCH |
Constructor and Description |
---|
PlasticSCM(String selector,
CleanupMethod cleanup,
WorkingMode workingMode,
String credentialsId,
boolean useMultipleWorkspaces,
List<PlasticSCM.WorkspaceInfo> additionalWorkspaces,
boolean pollOnController,
String directory) |
Modifier and Type | Method and Description |
---|---|
ClientConfigurationArguments |
buildClientConfigurationArguments(hudson.model.Item item,
String selector) |
void |
buildEnvironment(hudson.model.Run<?,?> build,
Map<String,String> env)
Jenkins 2.60 and newer
|
void |
buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
Jenkins older than 2.60
|
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.Run<?,?> run,
hudson.FilePath wkPath,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
checkout(hudson.model.Run<?,?> run,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
File changelogFile,
hudson.scm.SCMRevisionState baseline) |
hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.Job<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline) |
hudson.scm.ChangeLogParser |
createChangeLogParser() |
List<PlasticSCM.WorkspaceInfo> |
getAdditionalWorkspaces() |
List<PlasticSCM.WorkspaceInfo> |
getAllWorkspaces() |
CleanupMethod |
getCleanup() |
String |
getCredentialsId() |
PlasticSCM.DescriptorImpl |
getDescriptor() |
String |
getDirectory() |
PlasticSCM.WorkspaceInfo |
getFirstWorkspace() |
String |
getKey() |
String |
getSelector() |
WorkingMode |
getWorkingMode() |
hudson.scm.RepositoryBrowser<?> |
guessBrowser() |
boolean |
isPollOnController() |
boolean |
isUseMultipleWorkspaces() |
boolean |
requiresWorkspaceForPolling() |
_calcRevisionsFromBuild, _for, _for, all, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, supportsPolling
public static final String DEFAULT_BRANCH
@DataBoundConstructor public PlasticSCM(String selector, CleanupMethod cleanup, WorkingMode workingMode, String credentialsId, boolean useMultipleWorkspaces, List<PlasticSCM.WorkspaceInfo> additionalWorkspaces, boolean pollOnController, String directory)
@Exported public String getSelector()
@Exported public CleanupMethod getCleanup()
@Exported public WorkingMode getWorkingMode()
@Exported public String getCredentialsId()
@Exported public boolean isUseMultipleWorkspaces()
@Exported public List<PlasticSCM.WorkspaceInfo> getAdditionalWorkspaces()
@Exported public PlasticSCM.WorkspaceInfo getFirstWorkspace()
@Exported public String getDirectory()
@Exported public boolean isPollOnController()
@CheckForNull public hudson.scm.RepositoryBrowser<?> guessBrowser()
guessBrowser
in class hudson.scm.SCM
public hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser
in class hudson.scm.SCM
public void checkout(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.Launcher launcher, @Nonnull hudson.FilePath workspace, @Nonnull hudson.model.TaskListener listener, @CheckForNull File changelogFile, @CheckForNull hudson.scm.SCMRevisionState baseline) throws IOException, InterruptedException
checkout
in class hudson.scm.SCM
IOException
InterruptedException
public void buildEnvVars(@Nonnull hudson.model.AbstractBuild<?,?> build, @Nonnull Map<String,String> env)
buildEnvVars
in class hudson.scm.SCM
public void buildEnvironment(@Nonnull hudson.model.Run<?,?> build, @Nonnull Map<String,String> env)
buildEnvironment
in class hudson.scm.SCM
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(@Nonnull hudson.model.Run<?,?> run, @Nullable hudson.FilePath wkPath, @Nullable hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener)
calcRevisionsFromBuild
in class hudson.scm.SCM
public hudson.scm.PollingResult compareRemoteRevisionWith(@Nonnull hudson.model.Job<?,?> project, @Nullable hudson.Launcher launcher, @Nullable hudson.FilePath workspace, @Nonnull hudson.model.TaskListener listener, @Nonnull hudson.scm.SCMRevisionState baseline) throws IOException, InterruptedException
compareRemoteRevisionWith
in class hudson.scm.SCM
IOException
InterruptedException
public PlasticSCM.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.scm.SCM>
getDescriptor
in class hudson.scm.SCM
@Nonnull public ClientConfigurationArguments buildClientConfigurationArguments(@Nullable hudson.model.Item item, @CheckForNull String selector)
public boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling
in class hudson.scm.SCM
public List<PlasticSCM.WorkspaceInfo> getAllWorkspaces()
Copyright © 2016–2023. All rights reserved.