@Extension
public final class SurroundSCM
extends hudson.scm.SCM
Modifier and Type | Class and Description |
---|---|
static class |
SurroundSCM.SurroundSCMDescriptor |
Modifier and Type | Field and Description |
---|---|
static SurroundSCM.SurroundSCMDescriptor |
DESCRIPTOR
Singleton descriptor.
|
Constructor and Description |
---|
SurroundSCM()
Deprecated.
|
SurroundSCM(String server,
String serverPort,
String branch,
String repository,
String credentialsId) |
SurroundSCM(String rsaKeyPath,
String server,
String serverPort,
String userName,
String password,
String branch,
String repository,
String surroundSCMExecutable)
Deprecated.
Deprecated as of release v9, added option to include // exclude output.
|
SurroundSCM(String rsaKeyPath,
String server,
String serverPort,
String userName,
String password,
String branch,
String repository,
String surroundSCMExecutable,
boolean includeOutput)
Deprecated.
as of release v10, Significant updates to the Jenkins integration, including:
|
Modifier and Type | Method and Description |
---|---|
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Calculates the SCMRevisionState that represents the state of the
workspace of the given build.
|
void |
checkout(hudson.model.Run<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
File changelogFile,
hudson.scm.SCMRevisionState baseline)
Obtains a fresh workspace of the module(s) into the specified directory of the specified machine.
|
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() |
String |
getBranch() |
String |
getCredentialsId() |
hudson.scm.SCMDescriptor<?> |
getDescriptor() |
boolean |
getIncludeOutput() |
String |
getKey() |
String |
getPassword() |
String |
getRepository() |
RSAKey |
getRsaKey()
This function was required to make the Snippet Generator work
|
String |
getRsaKeyFileId()
Used to populate the rsaKeyFileId field in stapler.
|
String |
getRsaKeyFilePath()
Used to populate the rsaKeyFilePath field in stapler.
|
String |
getRsaKeyPath()
Deprecated.
This was getting called.... not entirely sure why, having it always return 'null' to indicate
that the field is not being used. It was showing up in the 'Snippet Generator' for the 'checkout' command
prior to me having this return null.
When I didn't have this field, and it was not marked as @ |
String |
getServer() |
String |
getServerPort() |
String |
getUserName() |
boolean |
hasRsaKeyConfigured() |
boolean |
isUsingRsaKeyFileId() |
boolean |
isUsingRsaKeyPath() |
boolean |
requiresWorkspaceForPolling()
We don't actually NEED a workspace for polling.
|
SurroundTool |
resolveSscmTool(hudson.model.TaskListener listener)
Attempt to find a pre-configured 'SurroundTool' with a saved 'sscm_tool_name'
Currently this will always fall back to the 'default' tool for the current node and requires some further
testing of edge conditions
|
void |
setIncludeOutput(boolean includeOutput) |
void |
setRsaKey(RSAKey rsaKey) |
void |
setRsaKeyFileId(String rsaKeyFileId) |
void |
setRsaKeyFilePath(String rsaKeyFilePath) |
void |
setRsaKeyPath(String rsaKeyPath)
Deprecated.
Leaving this here for when reading in old versions of the plugin we can setup the new version
of the rsaKey storage.
|
boolean |
supportsPolling() |
_calcRevisionsFromBuild, _for, _for, all, buildEnvVars, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion
@Extension public static final SurroundSCM.SurroundSCMDescriptor DESCRIPTOR
@DataBoundConstructor public SurroundSCM(String server, String serverPort, String branch, String repository, String credentialsId)
public SurroundSCM(String rsaKeyPath, String server, String serverPort, String userName, String password, String branch, String repository, String surroundSCMExecutable, boolean includeOutput)
public SurroundSCM(String rsaKeyPath, String server, String serverPort, String userName, String password, String branch, String repository, String surroundSCMExecutable)
@Deprecated public SurroundSCM()
public String getUserName()
public String getPassword()
public String getRsaKeyFilePath()
@DataBoundSetter public void setRsaKeyFilePath(String rsaKeyFilePath)
public String getRsaKeyFileId()
@DataBoundSetter public void setRsaKeyFileId(String rsaKeyFileId)
@Exported public String getServer()
@Exported public String getServerPort()
@Exported public String getBranch()
@Exported public String getRepository()
@Exported public boolean getIncludeOutput()
public void setIncludeOutput(boolean includeOutput)
public String getCredentialsId()
@Exported public boolean hasRsaKeyConfigured()
@Exported public boolean isUsingRsaKeyPath()
@Exported public boolean isUsingRsaKeyFileId()
@Exported public RSAKey getRsaKey()
@DataBoundSetter public void setRsaKey(RSAKey rsaKey)
@Exported public String getRsaKeyPath()
When I didn't have this field, and it was not marked as @Exported
the 'Snippet Generator' was throwing
errors and wouldn't correctly generate the example 'checkout' command.
@DataBoundSetter public void setRsaKeyPath(String rsaKeyPath)
rsaKeyPath
- Path to the RSA key file on the remote node.public hudson.scm.SCMDescriptor<?> getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.scm.SCM>
getDescriptor
in class hudson.scm.SCM
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(@Nonnull hudson.model.Run<?,?> build, @Nullable hudson.FilePath workspace, @Nullable hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws IOException, InterruptedException
calcRevisionsFromBuild
in class hudson.scm.SCM
IOException
InterruptedException
public boolean requiresWorkspaceForPolling()
However, we have relied on this to be set to 'True' since we started coding, and when I tried to turn it off, stuff broke. Maybe we can try again later?
requiresWorkspaceForPolling
in class hudson.scm.SCM
public boolean supportsPolling()
supportsPolling
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 void checkout(@Nonnull hudson.model.Run<?,?> build, @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 hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser
in class hudson.scm.SCM
public SurroundTool resolveSscmTool(hudson.model.TaskListener listener)
Copyright © 2016–2018. All rights reserved.