hudson.plugins.tfs
Class TeamFoundationServerScm
java.lang.Object
hudson.scm.SCM
hudson.plugins.tfs.TeamFoundationServerScm
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>
public class TeamFoundationServerScm
- extends hudson.scm.SCM
SCM for Microsoft Team Foundation Server.
- Author:
- Erik Ramfelt
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.scm.SCM |
PERMISSIONS, TAG |
|
Constructor Summary |
TeamFoundationServerScm(java.lang.String serverUrl,
java.lang.String projectPath,
java.lang.String localPath,
boolean useUpdate,
java.lang.String workspaceName,
java.lang.String userName,
java.lang.String userPassword)
|
|
Method Summary |
void |
buildEnvVars(hudson.model.AbstractBuild build,
java.util.Map<java.lang.String,java.lang.String> env)
|
boolean |
checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspaceFilePath,
hudson.model.BuildListener listener,
java.io.File changelogFile)
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
protected Server |
createServer(TfTool tool,
hudson.model.Run<?,?> run)
|
TeamFoundationServerRepositoryBrowser |
getBrowser()
|
TeamFoundationServerScm.DescriptorImpl |
getDescriptor()
|
java.lang.String |
getLocalPath()
|
hudson.FilePath |
getModuleRoot(hudson.FilePath workspace)
|
java.lang.String |
getProjectPath()
|
java.lang.String |
getServerUrl()
|
java.lang.String |
getServerUrl(hudson.model.Run<?,?> run)
|
java.lang.String |
getUserName()
|
java.lang.String |
getUserPassword()
|
java.lang.String |
getWorkspaceName()
|
boolean |
isUseUpdate()
|
boolean |
pollChanges(hudson.model.AbstractProject hudsonProject,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
|
boolean |
processWorkspaceBeforeDeletion(hudson.model.AbstractProject<?,?> project,
hudson.FilePath workspace,
hudson.model.Node node)
|
boolean |
requiresWorkspaceForPolling()
|
boolean |
supportsPolling()
|
| Methods inherited from class hudson.scm.SCM |
_for, all, createEmptyChangeLog, getEffectiveBrowser, getModuleRoots, nullify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WORKSPACE_ENV_STR
public static final java.lang.String WORKSPACE_ENV_STR
- See Also:
- Constant Field Values
WORKFOLDER_ENV_STR
public static final java.lang.String WORKFOLDER_ENV_STR
- See Also:
- Constant Field Values
PROJECTPATH_ENV_STR
public static final java.lang.String PROJECTPATH_ENV_STR
- See Also:
- Constant Field Values
SERVERURL_ENV_STR
public static final java.lang.String SERVERURL_ENV_STR
- See Also:
- Constant Field Values
USERNAME_ENV_STR
public static final java.lang.String USERNAME_ENV_STR
- See Also:
- Constant Field Values
TeamFoundationServerScm
@DataBoundConstructor
public TeamFoundationServerScm(java.lang.String serverUrl,
java.lang.String projectPath,
java.lang.String localPath,
boolean useUpdate,
java.lang.String workspaceName,
java.lang.String userName,
java.lang.String userPassword)
getServerUrl
public java.lang.String getServerUrl()
getWorkspaceName
public java.lang.String getWorkspaceName()
getProjectPath
public java.lang.String getProjectPath()
getLocalPath
public java.lang.String getLocalPath()
isUseUpdate
public boolean isUseUpdate()
getUserPassword
public java.lang.String getUserPassword()
getUserName
public java.lang.String getUserName()
getServerUrl
public java.lang.String getServerUrl(hudson.model.Run<?,?> run)
checkout
public boolean checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspaceFilePath,
hudson.model.BuildListener listener,
java.io.File changelogFile)
throws java.io.IOException,
java.lang.InterruptedException
- Specified by:
checkout in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
pollChanges
public boolean pollChanges(hudson.model.AbstractProject hudsonProject,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
throws java.io.IOException,
java.lang.InterruptedException
- Specified by:
pollChanges in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
processWorkspaceBeforeDeletion
public boolean processWorkspaceBeforeDeletion(hudson.model.AbstractProject<?,?> project,
hudson.FilePath workspace,
hudson.model.Node node)
throws java.io.IOException,
java.lang.InterruptedException
- Overrides:
processWorkspaceBeforeDeletion in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
createServer
protected Server createServer(TfTool tool,
hudson.model.Run<?,?> run)
requiresWorkspaceForPolling
public boolean requiresWorkspaceForPolling()
- Overrides:
requiresWorkspaceForPolling in class hudson.scm.SCM
supportsPolling
public boolean supportsPolling()
- Overrides:
supportsPolling in class hudson.scm.SCM
createChangeLogParser
public hudson.scm.ChangeLogParser createChangeLogParser()
- Specified by:
createChangeLogParser in class hudson.scm.SCM
getModuleRoot
public hudson.FilePath getModuleRoot(hudson.FilePath workspace)
- Overrides:
getModuleRoot in class hudson.scm.SCM
getBrowser
public TeamFoundationServerRepositoryBrowser getBrowser()
- Overrides:
getBrowser in class hudson.scm.SCM
buildEnvVars
public void buildEnvVars(hudson.model.AbstractBuild build,
java.util.Map<java.lang.String,java.lang.String> env)
- Overrides:
buildEnvVars in class hudson.scm.SCM
getDescriptor
public TeamFoundationServerScm.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>- Overrides:
getDescriptor in class hudson.scm.SCM
Copyright © 2009. All Rights Reserved.