public class IntegritySCM extends hudson.scm.SCM implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
IntegritySCM.DescriptorImpl
The relationship of Descriptor and SCM (the describable) is akin to class and object.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_THREAD_POOL_SIZE |
static String |
FS |
static int |
MAX_PORT_VALUE |
static int |
MIN_PORT_VALUE |
static String |
NL |
static SimpleDateFormat |
SDF |
| Constructor and Description |
|---|
IntegritySCM(IntegrityRepositoryBrowser browser,
String serverConfig,
String userName,
String password,
String configPath,
String includeList,
String excludeList,
boolean cleanCopy,
String lineTerminator,
boolean restoreTimestamp,
boolean skipAuthorInfo,
boolean checkpointBeforeBuild,
String checkpointLabel,
String alternateWorkspace,
boolean fetchChangedWorkspaceFiles,
boolean deleteNonMembers,
int checkoutThreadPoolSize,
String configurationName)
Create a constructor that takes non-transient fields, and add the annotation @DataBoundConstructor to it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
Adds Integrity CM Project info to the build variables
|
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Overridden calcRevisionsFromBuild function
Returns the current project configuration which can be used to difference any future configurations
|
boolean |
checkout(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
File changeLogFile)
Overridden checkout function
This is the real invocation of this plugin.
|
protected hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState _baseline)
Overridden compareRemoteRevisionWith function
Loads up the previous project configuration and compares
that against the current to determine if the project has changed
|
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
|
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 |
getDeleteNonMembers()
Returns the true/false depending on whether non members should be deleted before the build
|
hudson.scm.SCMDescriptor<IntegritySCM> |
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
|
String |
getPassword()
Returns the project specific encrypted password of the user connecting to the Integrity Server
|
boolean |
getRestoreTimestamp()
Returns true/false depending on whether or not the restore timestamp option is in effect
|
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 |
setCheckoutThreadPoolSize(int checkoutThreadPoolSize)
Sets the thread pool size of parallel 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 |
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 |
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 |
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
|
public static final String NL
public static final String FS
public static final int MIN_PORT_VALUE
public static final int MAX_PORT_VALUE
public static final int DEFAULT_THREAD_POOL_SIZE
public static final SimpleDateFormat SDF
@DataBoundConstructor public IntegritySCM(IntegrityRepositoryBrowser browser, String serverConfig, String userName, String password, String configPath, String includeList, String excludeList, boolean cleanCopy, String lineTerminator, boolean restoreTimestamp, boolean skipAuthorInfo, boolean checkpointBeforeBuild, String checkpointLabel, String alternateWorkspace, boolean fetchChangedWorkspaceFiles, boolean deleteNonMembers, int checkoutThreadPoolSize, String configurationName)
@Exported public IntegrityRepositoryBrowser getBrowser()
getBrowser in class hudson.scm.SCMpublic 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 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 void setServerConfig(String serverConfig)
serverConfig - public void setUserName(String userName)
public void setPassword(String password)
password - - The clear passwordpublic void setConfigPath(String configPath)
public void setIncludeList(String includeList)
public void setExcludeList(String excludeList)
public void setCleanCopy(boolean cleanCopy)
public void setLineTerminator(String lineTerminator)
public void setRestoreTimestamp(boolean restoreTimestamp)
public void setSkipAuthorInfo(boolean skipAuthorInfo)
public void setCheckpointBeforeBuild(boolean checkpointBeforeBuild)
checkpointBeforeBuild - public void setCheckpointLabel(String checkpointLabel)
checkpointLabel - public void setAlternateWorkspace(String alternateWorkspace)
alternateWorkspace - public void setFetchChangedWorkspaceFiles(boolean fetchChangedWorkspaceFiles)
fetchChangedWorkspaceFiles - public void setDeleteNonMembers(boolean deleteNonMembers)
deleteNonMembers - public void setCheckoutThreadPoolSize(int checkoutThreadPoolSize)
checkoutThreadPoolSize - public void setConfigurationName(String configurationName)
configurationName - Name for this project configurationpublic IntegrityCMProject getIntegrityProject()
public static IntegrityCMProject findProject(String configurationName)
public static boolean hasProject(String configurationName)
public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
buildEnvVars in class hudson.scm.SCMpublic hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
calcRevisionsFromBuild in class hudson.scm.SCMIOExceptionInterruptedExceptionSCM.calcRevisionsFromBuild(hudson.model.AbstractBuild, hudson.Launcher, hudson.model.TaskListener)public boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling in class hudson.scm.SCMpublic boolean checkout(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
File changeLogFile)
throws IOException,
InterruptedException
checkout in class hudson.scm.SCMIOExceptionInterruptedExceptionSCM.checkout(hudson.model.AbstractBuild, hudson.Launcher, hudson.FilePath, hudson.model.BuildListener, java.io.File)protected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState _baseline)
throws IOException,
InterruptedException
compareRemoteRevisionWith in class hudson.scm.SCMIOExceptionInterruptedExceptionSCM.compareRemoteRevisionWith(hudson.model.AbstractProject, hudson.Launcher, hudson.FilePath, hudson.model.TaskListener, hudson.scm.SCMRevisionState)public hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser in class hudson.scm.SCMSCM.createChangeLogParser()public hudson.scm.SCMDescriptor<IntegritySCM> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>getDescriptor in class hudson.scm.SCMCopyright © 2004-2015 Hudson. All Rights Reserved.