|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.scm.SCM
hudson.scm.IntegritySCM
public class IntegritySCM
This class provides an integration between Hudson/Jenkins for Continuous Builds and PTC Integrity for Configuration Management
| Nested Class Summary | |
|---|---|
static class |
IntegritySCM.DescriptorImpl
The relationship of Descriptor and SCM (the describable) is akin to class and object. |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary | |
|---|---|
static String |
FS
|
static int |
MAX_PORT_VALUE
|
static int |
MIN_PORT_VALUE
|
static String |
NL
|
static SimpleDateFormat |
SDF
|
| Fields inherited from class hudson.scm.SCM |
|---|
PERMISSIONS, TAG |
| Constructor Summary | |
|---|---|
IntegritySCM(IntegrityRepositoryBrowser browser,
String hostName,
int port,
boolean secure,
String configPath,
String userName,
String password,
String ipHostName,
int ipPort,
boolean cleanCopy,
String lineTerminator,
boolean restoreTimestamp,
boolean skipAuthorInfo,
boolean checkpointBeforeBuild,
String alternateWorkspace,
boolean fetchChangedWorkspaceFiles)
Create a constructor that takes non-transient fields, and add the annotation @DataBoundConstructor to it. |
|
| Method Summary | |
|---|---|
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 |
APISession |
createAPISession()
Creates an authenticated API Session against the Integrity Server |
hudson.scm.ChangeLogParser |
createChangeLogParser()
Overridden createChangeLogParser function Creates a custom Integrity Change Log Parser, which compares two view project outputs |
String |
getAlternateWorkspace()
Returns the alternate workspace directory |
IntegrityRepositoryBrowser |
getBrowser()
|
boolean |
getCheckpointBeforeBuild()
Returns true/false depending on whether or not perform a checkpoint 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 |
hudson.scm.SCMDescriptor<IntegritySCM> |
getDescriptor()
Returns the SCMDescriptor> for the SCM object. |
boolean |
getFetchChangedWorkspaceFiles()
Returns the true/false depending on whether or not to synchronize changed workspace files |
String |
getHostName()
Returns the host name of the Integrity Server |
IntegrityCMProject |
getIntegrityProject()
Returns the Integrity Configuration Management Project |
String |
getipHostName()
Returns the Integration Point host name of the API Session |
int |
getipPort()
Returns the Integration Point port of the API Session |
String |
getLineTerminator()
Returns the line terminator to apply when obtaining files from the Integrity Server |
String |
getPassword()
Returns the clear password of the user connecting to the Integrity Server |
int |
getPort()
Returns the port of the Integrity Server |
boolean |
getRestoreTimestamp()
Returns true/false depending on whether or not the restore timestamp option is in effect |
boolean |
getSecure()
Returns true/false depending on secure sockets are enabled |
boolean |
getSkipAuthorInfo()
Returns true/false depending on whether or not to use 'si revisioninfo' to determine author information |
String |
getUserName()
Returns the User connecting to the Integrity Server |
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 |
setCheckpointBeforeBuild(boolean checkpointBeforeBuild)
Toggles whether or not a checkpoint should be 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 |
setFetchChangedWorkspaceFiles(boolean fetchChangedWorkspaceFiles)
Toggles whether or not changed workspace files should be synchronized |
void |
setHostName(String hostName)
Sets the host name of the Integrity Server |
void |
setipHostName(String ipHostName)
Sets the Integration Point host name of the API Session |
void |
setipPort(int ipPort)
Sets the Integration Point port of the API Session |
void |
setLineTerminator(String lineTerminator)
Sets the line terminator to apply when obtaining files from the Integrity Server |
void |
setPassword(String password)
Sets the encrypted Password of the user connecting to the Integrity Server |
void |
setPort(int port)
Sets the port of the Integrity Server |
void |
setRestoreTimestamp(boolean restoreTimestamp)
Toggles whether or not to restore the timestamp for individual files |
void |
setSecure(boolean secure)
Toggles whether or not secure sockets are enabled |
void |
setSkipAuthorInfo(boolean skipAuthorInfo)
Toggles whether or not to use 'si revisioninfo' to determine author information |
void |
setUserName(String userName)
Sets the User connecting to the Integrity Server |
| Methods inherited from class hudson.scm.SCM |
|---|
_calcRevisionsFromBuild, _for, all, createEmptyChangeLog, getApi, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, supportsPolling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 SimpleDateFormat SDF
| Constructor Detail |
|---|
@DataBoundConstructor
public IntegritySCM(IntegrityRepositoryBrowser browser,
String hostName,
int port,
boolean secure,
String configPath,
String userName,
String password,
String ipHostName,
int ipPort,
boolean cleanCopy,
String lineTerminator,
boolean restoreTimestamp,
boolean skipAuthorInfo,
boolean checkpointBeforeBuild,
String alternateWorkspace,
boolean fetchChangedWorkspaceFiles)
| Method Detail |
|---|
@Exported public IntegrityRepositoryBrowser getBrowser()
getBrowser in class hudson.scm.SCMpublic String getHostName()
public String getipHostName()
public int getPort()
public int getipPort()
public boolean getSecure()
public String getConfigPath()
public String getUserName()
public String getPassword()
public boolean getCleanCopy()
public String getLineTerminator()
public boolean getRestoreTimestamp()
public boolean getSkipAuthorInfo()
public boolean getCheckpointBeforeBuild()
public String getAlternateWorkspace()
public boolean getFetchChangedWorkspaceFiles()
public void setHostName(String hostName)
public void setipHostName(String ipHostName)
public void setPort(int port)
public void setipPort(int ipPort)
public void setSecure(boolean secure)
public void setConfigPath(String configPath)
public void setUserName(String userName)
public void setPassword(String password)
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 setAlternateWorkspace(String alternateWorkspace)
alternateWorkspace - public void setFetchChangedWorkspaceFiles(boolean fetchChangedWorkspaceFiles)
fetchChangedWorkspaceFiles - public APISession createAPISession()
public IntegrityCMProject getIntegrityProject()
public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
buildEnvVars in class hudson.scm.SCM
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
calcRevisionsFromBuild in class hudson.scm.SCMIOException
InterruptedExceptionSCM.calcRevisionsFromBuild(hudson.model.AbstractBuild, hudson.Launcher, hudson.model.TaskListener)public boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling in class hudson.scm.SCM
public 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.SCMIOException
InterruptedExceptionSCM.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.SCMIOException
InterruptedExceptionSCM.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.SCM
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||