public abstract class AbstractIntegritySCM extends hudson.scm.SCM implements Serializable
Constructor and Description |
---|
AbstractIntegritySCM() |
Modifier and Type | Method and Description |
---|---|
hudson.scm.ChangeLogParser |
createChangeLogParser()
Overridden createChangeLogParser function Creates a custom Integrity Change Log Parser, which
compares two view project outputs
|
static IntegrityCMProject |
findProject(String configurationName) |
String |
getAlternateWorkspace()
Returns the alternate workspace directory
|
IntegrityRepositoryBrowser |
getBrowser() |
int |
getCheckoutThreadPoolSize()
Returns the size of the thread pool for parallel checkouts
|
int |
getCheckoutThreadTimeout()
Returns the timeout for checkout threads
|
boolean |
getCheckpointBeforeBuild()
Returns true/false depending on whether or not perform a checkpoint before the build
|
String |
getCheckpointLabel()
Returns the label string for the checkpoint performed before the build
|
boolean |
getCleanCopy()
Returns true/false depending on whether or not the workspace is required to be cleaned
|
String |
getConfigPath()
Returns the Project or Configuration Path for a Integrity Source Project
|
String |
getConfigurationName()
Returns the configuration name for this project Required when working with Multiple SCMs
plug-in
|
boolean |
getCPBasedMode()
Returns true/false depending on whether CP based or File based change detection mode is used
|
boolean |
getDeleteNonMembers()
Returns the true/false depending on whether non members should be deleted before the build
|
IntegritySCM.DescriptorImpl |
getDescriptor()
Returns the SCMDescriptor> for the SCM object.
|
String |
getExcludeList()
Returns the files that will be included
|
boolean |
getFetchChangedWorkspaceFiles()
Returns the true/false depending on whether or not to synchronize changed workspace files
|
String |
getIncludeList()
Returns the files that will be excluded
|
IntegrityCMProject |
getIntegrityProject()
Returns the Integrity Configuration Management Project
|
String |
getLineTerminator()
Returns the line terminator to apply when obtaining files from the Integrity Server
|
boolean |
getLocalClient() |
String |
getPassword()
Returns the project specific encrypted password of the user connecting to the Integrity Server
|
IntegrityConfigurable |
getProjectSettings()
Gets the project specific user/password for this build
|
boolean |
getRestoreTimestamp()
Returns true/false depending on whether or not the restore timestamp option is in effect
|
String |
getSandboxScope() |
hudson.util.Secret |
getSecretPassword()
Returns the project specific Secret password of the user connecting to the Integrity Server
|
String |
getServerConfig()
Returns the simple server configuration name
|
boolean |
getSkipAuthorInfo()
Returns true/false depending on whether or not to use 'si revisioninfo' to determine author
information
|
String |
getUserName()
Returns the project specific User connecting to the Integrity Server
|
static boolean |
hasProject(String configurationName) |
boolean |
requiresWorkspaceForPolling()
Toggles whether or not a workspace is required for polling Since, we're using a Server
Integration Point in the Integrity API, we do not require a workspace.
|
void |
setAlternateWorkspace(String alternateWorkspace)
Sets an alternate workspace for the checkout directory
|
void |
setBrowser(IntegrityRepositoryBrowser browser)
Sets the Integrity SCM web browser
|
void |
setCheckoutThreadPoolSize(int checkoutThreadPoolSize)
Sets the thread pool size of parallel checkout threads
|
void |
setCheckoutThreadTimeout(int checkoutThreadTimeout)
Sets the timeout for checkout threads
|
void |
setCheckpointBeforeBuild(boolean checkpointBeforeBuild)
Toggles whether or not a checkpoint should be performed before the build
|
void |
setCheckpointLabel(String checkpointLabel)
Sets the label string for the checkpoint performed before the build
|
void |
setCleanCopy(boolean cleanCopy)
Toggles whether or not the workspace is required to be cleaned
|
void |
setConfigPath(String configPath)
Sets the Project or Configuration Path for an Integrity Source Project
|
void |
setConfigurationName(String configurationName)
Sets the configuration name for this project
|
void |
setCPBasedMode(boolean CPBasedMode)
Toggles whether CP based or File based change detection mode to be used
|
void |
setDeleteNonMembers(boolean deleteNonMembers)
Toggles whether or not non members should be deleted
|
void |
setExcludeList(String excludeList)
Sets the files that will be not be included
|
void |
setFetchChangedWorkspaceFiles(boolean fetchChangedWorkspaceFiles)
Toggles whether or not changed workspace files should be synchronized
|
void |
setIncludeList(String includeList)
Sets the files that will be not be included
|
void |
setLineTerminator(String lineTerminator)
Sets the line terminator to apply when obtaining files from the Integrity Server
|
void |
setLocalClient(boolean localClient) |
void |
setPassword(String password)
Sets the project specific encrypted Password of the user connecting to the Integrity Server
|
void |
setRestoreTimestamp(boolean restoreTimestamp)
Toggles whether or not to restore the timestamp for individual files
|
void |
setSandboxScope(String sandboxScope) |
void |
setServerConfig(String serverConfig)
Sets the server configuration name for this project
|
void |
setSkipAuthorInfo(boolean skipAuthorInfo)
Toggles whether or not to use 'si revisioninfo' to determine author information
|
void |
setUserName(String userName)
Sets the project specific User connecting to the Integrity Server
|
boolean |
supportsPolling()
Toggles whether or not the Integrity SCM plugin can be used for polling
|
_calcRevisionsFromBuild, _for, _for, all, buildEnvVars, calcRevisionsFromBuild, calcRevisionsFromBuild, checkout, checkout, compareRemoteRevisionWith, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion
protected static final Logger LOGGER
protected static final Map<String,IntegrityCMProject> projects
public static final String NL
public static final String FS
public static final int MIN_PORT_VALUE
public static final int MAX_PORT_VALUE
protected static final int DEFAULT_THREAD_POOL_SIZE
protected static final int DEFAULT_CHECKOUT_THREAD_TIMEOUT
public static final String DEFAULT_DATE_FORMAT
public static final SimpleDateFormat SDF
protected final String ciServerURL
protected String integrityURL
protected IntegrityRepositoryBrowser browser
protected String serverConfig
protected String userName
protected hudson.util.Secret password
protected String configPath
protected String includeList
protected String excludeList
protected String checkpointLabel
protected String configurationName
protected boolean cleanCopy
protected boolean CPBasedMode
protected boolean skipAuthorInfo
protected String lineTerminator
protected boolean restoreTimestamp
protected boolean checkpointBeforeBuild
protected String alternateWorkspace
protected boolean fetchChangedWorkspaceFiles
protected boolean deleteNonMembers
protected int checkoutThreadPoolSize
protected int checkoutThreadTimeout
protected boolean localClient
protected String sandboxScope
protected static final String RETURNED_EXIT_CODE
protected static final String SQL_EXCEPTION_CAUGHT
@Exported public IntegrityRepositoryBrowser getBrowser()
getBrowser
in class hudson.scm.SCM
public String getServerConfig()
public String getUserName()
public String getPassword()
public hudson.util.Secret getSecretPassword()
public String getConfigPath()
public String getIncludeList()
public String getExcludeList()
public boolean getCleanCopy()
public boolean getCPBasedMode()
public String getLineTerminator()
public boolean getRestoreTimestamp()
public boolean getSkipAuthorInfo()
public boolean getCheckpointBeforeBuild()
public String getCheckpointLabel()
public String getAlternateWorkspace()
public boolean getFetchChangedWorkspaceFiles()
public boolean getDeleteNonMembers()
public int getCheckoutThreadPoolSize()
public String getConfigurationName()
public String getSandboxScope()
@DataBoundSetter public void setSandboxScope(String sandboxScope)
@DataBoundSetter public final void setBrowser(IntegrityRepositoryBrowser browser)
browser
- public void setServerConfig(String serverConfig)
serverConfig
- @DataBoundSetter public final void setUserName(String userName)
@DataBoundSetter public final void setPassword(String password)
password
- - The clear passwordpublic void setConfigPath(String configPath)
@DataBoundSetter public final void setIncludeList(String includeList)
@DataBoundSetter public final void setExcludeList(String excludeList)
@DataBoundSetter public final void setCleanCopy(boolean cleanCopy)
@DataBoundSetter public final void setCPBasedMode(boolean CPBasedMode)
@DataBoundSetter public final void setLineTerminator(String lineTerminator)
@DataBoundSetter public final void setRestoreTimestamp(boolean restoreTimestamp)
@DataBoundSetter public final void setSkipAuthorInfo(boolean skipAuthorInfo)
@DataBoundSetter public final void setCheckpointBeforeBuild(boolean checkpointBeforeBuild)
checkpointBeforeBuild
- @DataBoundSetter public final void setCheckpointLabel(String checkpointLabel)
checkpointLabel
- @DataBoundSetter public final void setAlternateWorkspace(String alternateWorkspace)
alternateWorkspace
- @DataBoundSetter public final void setFetchChangedWorkspaceFiles(boolean fetchChangedWorkspaceFiles)
fetchChangedWorkspaceFiles
- @DataBoundSetter public final void setDeleteNonMembers(boolean deleteNonMembers)
deleteNonMembers
- @DataBoundSetter public final void setCheckoutThreadPoolSize(int checkoutThreadPoolSize)
checkoutThreadPoolSize
- public void setConfigurationName(String configurationName)
configurationName
- Name for this project configurationpublic boolean supportsPolling()
supportsPolling
in class hudson.scm.SCM
public boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling
in class hudson.scm.SCM
public hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser
in class hudson.scm.SCM
SCM.createChangeLogParser()
public IntegrityCMProject getIntegrityProject()
public static IntegrityCMProject findProject(String configurationName)
configurationName
- public static boolean hasProject(String configurationName)
configurationName
- public IntegritySCM.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.scm.SCM>
getDescriptor
in class hudson.scm.SCM
public int getCheckoutThreadTimeout()
@DataBoundSetter public void setCheckoutThreadTimeout(int checkoutThreadTimeout)
checkoutThreadTimeout
- public IntegrityConfigurable getProjectSettings()
public boolean getLocalClient()
@DataBoundSetter public void setLocalClient(boolean localClient)
Copyright © 2016–2024. All rights reserved.