Package hudson.scm
Class AbstractIntegritySCM
java.lang.Object
hudson.scm.SCM
hudson.scm.AbstractIntegritySCM
- All Implemented Interfaces:
hudson.ExtensionPoint,hudson.model.Describable<hudson.scm.SCM>,Serializable
- Direct Known Subclasses:
IntegritySCM
- Version:
- $Revision: $
- Author:
- Author: asen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected IntegrityRepositoryBrowserprotected intprotected intprotected booleanprotected Stringprotected final Stringprotected booleanprotected Stringprotected Stringprotected booleanprotected static final intstatic final Stringprotected static final intprotected booleanprotected Stringprotected booleanstatic final Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected static final Loggerstatic final intstatic final intstatic final Stringprotected hudson.util.Secretprotected static final Map<String, IntegrityCMProject> protected booleanprotected static final Stringprotected Stringstatic final SimpleDateFormatprotected Stringprotected booleanprotected static final Stringprotected StringFields inherited from class hudson.scm.SCM
PERMISSIONS, TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhudson.scm.ChangeLogParserOverridden createChangeLogParser function Creates a custom Integrity Change Log Parser, which compares two view project outputsstatic IntegrityCMProjectfindProject(String configurationName) Returns the alternate workspace directoryintReturns the size of the thread pool for parallel checkoutsintReturns the timeout for checkout threadsbooleanReturns true/false depending on whether or not perform a checkpoint before the buildReturns the label string for the checkpoint performed before the buildbooleanReturns true/false depending on whether or not the workspace is required to be cleanedReturns the Project or Configuration Path for a Integrity Source ProjectReturns the configuration name for this project Required when working with Multiple SCMs plug-inbooleanReturns true/false depending on whether CP based or File based change detection mode is usedbooleanReturns the true/false depending on whether non members should be deleted before the buildReturns the SCMDescriptorinvalid input: '<'?> for the SCM object.Returns the files that will be includedbooleanReturns the true/false depending on whether or not to synchronize changed workspace filesReturns the files that will be excludedReturns the Integrity Configuration Management ProjectReturns the line terminator to apply when obtaining files from the Integrity ServerbooleanReturns the project specific encrypted password of the user connecting to the Integrity ServerGets the project specific user/password for this buildbooleanReturns true/false depending on whether or not the restore timestamp option is in effecthudson.util.SecretReturns the project specific Secret password of the user connecting to the Integrity ServerReturns the simple server configuration namebooleanReturns true/false depending on whether or not to use 'si revisioninfo' to determine author informationReturns the project specific User connecting to the Integrity Serverstatic booleanhasProject(String configurationName) booleanToggles 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.final voidsetAlternateWorkspace(String alternateWorkspace) Sets an alternate workspace for the checkout directoryfinal voidsetBrowser(IntegrityRepositoryBrowser browser) Sets the Integrity SCM web browserfinal voidsetCheckoutThreadPoolSize(int checkoutThreadPoolSize) Sets the thread pool size of parallel checkout threadsvoidsetCheckoutThreadTimeout(int checkoutThreadTimeout) Sets the timeout for checkout threadsfinal voidsetCheckpointBeforeBuild(boolean checkpointBeforeBuild) Toggles whether or not a checkpoint should be performed before the buildfinal voidsetCheckpointLabel(String checkpointLabel) Sets the label string for the checkpoint performed before the buildfinal voidsetCleanCopy(boolean cleanCopy) Toggles whether or not the workspace is required to be cleanedvoidsetConfigPath(String configPath) Sets the Project or Configuration Path for an Integrity Source ProjectvoidsetConfigurationName(String configurationName) Sets the configuration name for this projectfinal voidsetCPBasedMode(boolean CPBasedMode) Toggles whether CP based or File based change detection mode to be usedfinal voidsetDeleteNonMembers(boolean deleteNonMembers) Toggles whether or not non members should be deletedfinal voidsetExcludeList(String excludeList) Sets the files that will be not be includedfinal voidsetFetchChangedWorkspaceFiles(boolean fetchChangedWorkspaceFiles) Toggles whether or not changed workspace files should be synchronizedfinal voidsetIncludeList(String includeList) Sets the files that will be not be includedfinal voidsetLineTerminator(String lineTerminator) Sets the line terminator to apply when obtaining files from the Integrity ServervoidsetLocalClient(boolean localClient) final voidsetPassword(String password) Sets the project specific encrypted Password of the user connecting to the Integrity Serverfinal voidsetRestoreTimestamp(boolean restoreTimestamp) Toggles whether or not to restore the timestamp for individual filesvoidsetSandboxScope(String sandboxScope) voidsetServerConfig(String serverConfig) Sets the server configuration name for this projectfinal voidsetSkipAuthorInfo(boolean skipAuthorInfo) Toggles whether or not to use 'si revisioninfo' to determine author informationfinal voidsetUserName(String userName) Sets the project specific User connecting to the Integrity ServerbooleanToggles whether or not the Integrity SCM plugin can be used for pollingMethods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, _for, all, buildEnvironment, 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
-
Field Details
-
LOGGER
-
projects
-
NL
-
FS
-
MIN_PORT_VALUE
public static final int MIN_PORT_VALUE- See Also:
-
MAX_PORT_VALUE
public static final int MAX_PORT_VALUE- See Also:
-
DEFAULT_THREAD_POOL_SIZE
protected static final int DEFAULT_THREAD_POOL_SIZE- See Also:
-
DEFAULT_CHECKOUT_THREAD_TIMEOUT
protected static final int DEFAULT_CHECKOUT_THREAD_TIMEOUT- See Also:
-
DEFAULT_DATE_FORMAT
- See Also:
-
SDF
-
ciServerURL
-
integrityURL
-
browser
-
serverConfig
-
userName
-
password
protected hudson.util.Secret password -
configPath
-
includeList
-
excludeList
-
checkpointLabel
-
configurationName
-
cleanCopy
protected boolean cleanCopy -
CPBasedMode
protected boolean CPBasedMode -
skipAuthorInfo
protected boolean skipAuthorInfo -
lineTerminator
-
restoreTimestamp
protected boolean restoreTimestamp -
checkpointBeforeBuild
protected boolean checkpointBeforeBuild -
alternateWorkspace
-
fetchChangedWorkspaceFiles
protected boolean fetchChangedWorkspaceFiles -
deleteNonMembers
protected boolean deleteNonMembers -
checkoutThreadPoolSize
protected int checkoutThreadPoolSize -
checkoutThreadTimeout
protected int checkoutThreadTimeout -
localClient
protected boolean localClient -
sandboxScope
-
RETURNED_EXIT_CODE
- See Also:
-
SQL_EXCEPTION_CAUGHT
- See Also:
-
-
Constructor Details
-
AbstractIntegritySCM
public AbstractIntegritySCM()
-
-
Method Details
-
getBrowser
- Overrides:
getBrowserin classhudson.scm.SCM
-
getServerConfig
Returns the simple server configuration name- Returns:
-
getUserName
Returns the project specific User connecting to the Integrity Server- Returns:
-
getPassword
Returns the project specific encrypted password of the user connecting to the Integrity Server- Returns:
-
getSecretPassword
public hudson.util.Secret getSecretPassword()Returns the project specific Secret password of the user connecting to the Integrity Server- Returns:
-
getConfigPath
Returns the Project or Configuration Path for a Integrity Source Project- Returns:
-
getIncludeList
Returns the files that will be excluded- Returns:
-
getExcludeList
Returns the files that will be included- Returns:
-
getCleanCopy
public boolean getCleanCopy()Returns true/false depending on whether or not the workspace is required to be cleaned- Returns:
-
getCPBasedMode
public boolean getCPBasedMode()Returns true/false depending on whether CP based or File based change detection mode is used- Returns:
-
getLineTerminator
Returns the line terminator to apply when obtaining files from the Integrity Server- Returns:
-
getRestoreTimestamp
public boolean getRestoreTimestamp()Returns true/false depending on whether or not the restore timestamp option is in effect- Returns:
-
getSkipAuthorInfo
public boolean getSkipAuthorInfo()Returns true/false depending on whether or not to use 'si revisioninfo' to determine author information- Returns:
-
getCheckpointBeforeBuild
public boolean getCheckpointBeforeBuild()Returns true/false depending on whether or not perform a checkpoint before the build- Returns:
-
getCheckpointLabel
Returns the label string for the checkpoint performed before the build- Returns:
-
getAlternateWorkspace
Returns the alternate workspace directory- Returns:
-
getFetchChangedWorkspaceFiles
public boolean getFetchChangedWorkspaceFiles()Returns the true/false depending on whether or not to synchronize changed workspace files- Returns:
-
getDeleteNonMembers
public boolean getDeleteNonMembers()Returns the true/false depending on whether non members should be deleted before the build- Returns:
-
getCheckoutThreadPoolSize
public int getCheckoutThreadPoolSize()Returns the size of the thread pool for parallel checkouts- Returns:
-
getConfigurationName
Returns the configuration name for this project Required when working with Multiple SCMs plug-in -
getSandboxScope
-
setSandboxScope
-
setBrowser
Sets the Integrity SCM web browser- Parameters:
browser-
-
setServerConfig
Sets the server configuration name for this project- Parameters:
serverConfig-
-
setUserName
Sets the project specific User connecting to the Integrity Server -
setPassword
Sets the project specific encrypted Password of the user connecting to the Integrity Server- Parameters:
password- - The clear password
-
setConfigPath
Sets the Project or Configuration Path for an Integrity Source Project -
setIncludeList
Sets the files that will be not be included -
setExcludeList
Sets the files that will be not be included -
setCleanCopy
@DataBoundSetter public final void setCleanCopy(boolean cleanCopy) Toggles whether or not the workspace is required to be cleaned -
setCPBasedMode
@DataBoundSetter public final void setCPBasedMode(boolean CPBasedMode) Toggles whether CP based or File based change detection mode to be used -
setLineTerminator
Sets the line terminator to apply when obtaining files from the Integrity Server -
setRestoreTimestamp
@DataBoundSetter public final void setRestoreTimestamp(boolean restoreTimestamp) Toggles whether or not to restore the timestamp for individual files -
setSkipAuthorInfo
@DataBoundSetter public final void setSkipAuthorInfo(boolean skipAuthorInfo) Toggles whether or not to use 'si revisioninfo' to determine author information -
setCheckpointBeforeBuild
@DataBoundSetter public final void setCheckpointBeforeBuild(boolean checkpointBeforeBuild) Toggles whether or not a checkpoint should be performed before the build- Parameters:
checkpointBeforeBuild-
-
setCheckpointLabel
Sets the label string for the checkpoint performed before the build- Parameters:
checkpointLabel-
-
setAlternateWorkspace
Sets an alternate workspace for the checkout directory- Parameters:
alternateWorkspace-
-
setFetchChangedWorkspaceFiles
@DataBoundSetter public final void setFetchChangedWorkspaceFiles(boolean fetchChangedWorkspaceFiles) Toggles whether or not changed workspace files should be synchronized- Parameters:
fetchChangedWorkspaceFiles-
-
setDeleteNonMembers
@DataBoundSetter public final void setDeleteNonMembers(boolean deleteNonMembers) Toggles whether or not non members should be deleted- Parameters:
deleteNonMembers-
-
setCheckoutThreadPoolSize
@DataBoundSetter public final void setCheckoutThreadPoolSize(int checkoutThreadPoolSize) Sets the thread pool size of parallel checkout threads- Parameters:
checkoutThreadPoolSize-
-
setConfigurationName
Sets the configuration name for this project- Parameters:
configurationName- Name for this project configuration
-
supportsPolling
public boolean supportsPolling()Toggles whether or not the Integrity SCM plugin can be used for polling- Overrides:
supportsPollingin classhudson.scm.SCM
-
requiresWorkspaceForPolling
public 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.- Overrides:
requiresWorkspaceForPollingin classhudson.scm.SCM
-
createChangeLogParser
public hudson.scm.ChangeLogParser createChangeLogParser()Overridden createChangeLogParser function Creates a custom Integrity Change Log Parser, which compares two view project outputs- Specified by:
createChangeLogParserin classhudson.scm.SCM- See Also:
-
getIntegrityProject
Returns the Integrity Configuration Management Project- Returns:
-
findProject
- Parameters:
configurationName-- Returns:
-
hasProject
- Parameters:
configurationName-- Returns:
-
getDescriptor
Returns the SCMDescriptorinvalid input: '<'?> for the SCM object. The SCMDescriptor is used to create new instances of the SCM.- Specified by:
getDescriptorin interfacehudson.model.Describable<hudson.scm.SCM>- Overrides:
getDescriptorin classhudson.scm.SCM
-
getCheckoutThreadTimeout
public int getCheckoutThreadTimeout()Returns the timeout for checkout threads- Returns:
- checkoutThreadTimeout
-
setCheckoutThreadTimeout
@DataBoundSetter public void setCheckoutThreadTimeout(int checkoutThreadTimeout) Sets the timeout for checkout threads- Parameters:
checkoutThreadTimeout-
-
getProjectSettings
Gets the project specific user/password for this build -
getLocalClient
public boolean getLocalClient() -
setLocalClient
@DataBoundSetter public void setLocalClient(boolean localClient)
-