hudson.plugins.harvest
Class HarvestSCM
java.lang.Object
hudson.scm.SCM
hudson.plugins.harvest.HarvestSCM
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>
public class HarvestSCM
- extends hudson.scm.SCM
- Author:
- Gábor Lipták
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.scm.SCM |
PERMISSIONS, TAG |
|
Constructor Summary |
HarvestSCM(java.lang.String broker,
java.lang.String userId,
java.lang.String password,
java.lang.String projectName,
java.lang.String state,
java.lang.String viewPath,
java.lang.String clientPath,
java.lang.String processName,
java.lang.String recursiveSearch,
java.lang.Boolean useSynchronize)
Constructor |
|
Method Summary |
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
|
boolean |
checkout(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
java.io.File changeLogFile)
|
protected hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline)
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
java.lang.String |
getBroker()
|
java.lang.String |
getClientPath()
|
HarvestSCM.DescriptorImpl |
getDescriptor()
|
java.lang.String |
getPassword()
|
java.lang.String |
getProcessName()
|
java.lang.String |
getProjectName()
|
java.lang.String |
getRecursiveSearch()
|
java.lang.String |
getState()
|
java.lang.String |
getUserId()
|
java.lang.String |
getViewPath()
|
boolean |
isUseSynchronize()
|
protected hudson.scm.ChangeLogSet<HarvestChangeLogEntry> |
parse(hudson.model.AbstractBuild<?,?> build,
java.io.InputStream inputStream)
|
boolean |
pollChanges(hudson.model.AbstractProject<?,?> arg0,
hudson.Launcher arg1,
hudson.FilePath arg2,
hudson.model.TaskListener arg3)
Deprecated. |
protected hudson.util.ArgumentListBuilder |
prepareCommand(java.lang.String executable,
java.lang.String workspacePath)
|
void |
setBroker(java.lang.String broker)
|
void |
setClientPath(java.lang.String clientPath)
|
void |
setPassword(java.lang.String password)
|
void |
setProcessName(java.lang.String processName)
|
void |
setProjectName(java.lang.String projectName)
|
void |
setRecursiveSearch(java.lang.String recursiveSearch)
|
void |
setState(java.lang.String state)
|
void |
setUserId(java.lang.String userId)
|
void |
setUseSynchronize(boolean useSynchronize)
|
void |
setViewPath(java.lang.String viewPath)
|
boolean |
supportsPolling()
|
| Methods inherited from class hudson.scm.SCM |
_calcRevisionsFromBuild, _for, all, buildEnvVars, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HarvestSCM
@DataBoundConstructor
public HarvestSCM(java.lang.String broker,
java.lang.String userId,
java.lang.String password,
java.lang.String projectName,
java.lang.String state,
java.lang.String viewPath,
java.lang.String clientPath,
java.lang.String processName,
java.lang.String recursiveSearch,
java.lang.Boolean useSynchronize)
- Constructor
- Parameters:
broker - userId - password - projectName - state - viewPath - clientPath - processName - recursiveSearch -
supportsPolling
public boolean supportsPolling()
- Overrides:
supportsPolling in class hudson.scm.SCM
checkout
public boolean checkout(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
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
prepareCommand
protected hudson.util.ArgumentListBuilder prepareCommand(java.lang.String executable,
java.lang.String workspacePath)
parse
protected hudson.scm.ChangeLogSet<HarvestChangeLogEntry> parse(hudson.model.AbstractBuild<?,?> build,
java.io.InputStream inputStream)
throws java.io.IOException
- Throws:
java.io.IOException
createChangeLogParser
public hudson.scm.ChangeLogParser createChangeLogParser()
- Specified by:
createChangeLogParser in class hudson.scm.SCM
getDescriptor
public HarvestSCM.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>- Overrides:
getDescriptor in class hudson.scm.SCM
pollChanges
@Deprecated
public boolean pollChanges(hudson.model.AbstractProject<?,?> arg0,
hudson.Launcher arg1,
hudson.FilePath arg2,
hudson.model.TaskListener arg3)
throws java.io.IOException,
java.lang.InterruptedException
- Deprecated.
- Overrides:
pollChanges in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
calcRevisionsFromBuild
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws java.io.IOException,
java.lang.InterruptedException
- Specified by:
calcRevisionsFromBuild in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
compareRemoteRevisionWith
protected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline)
throws java.io.IOException,
java.lang.InterruptedException
- Specified by:
compareRemoteRevisionWith in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
getBroker
public java.lang.String getBroker()
- Returns:
- the broker
setBroker
public void setBroker(java.lang.String broker)
- Parameters:
broker - the broker to set
getUserId
public java.lang.String getUserId()
- Returns:
- the userId
setUserId
public void setUserId(java.lang.String userId)
- Parameters:
userId - the userId to set
getPassword
public java.lang.String getPassword()
- Returns:
- the password
setPassword
public void setPassword(java.lang.String password)
- Parameters:
password - the password to set
getProjectName
public java.lang.String getProjectName()
- Returns:
- the projectName
setProjectName
public void setProjectName(java.lang.String projectName)
- Parameters:
projectName - the projectName to set
getState
public java.lang.String getState()
- Returns:
- the state
setState
public void setState(java.lang.String state)
- Parameters:
state - the state to set
getViewPath
public java.lang.String getViewPath()
- Returns:
- the viewPath
setViewPath
public void setViewPath(java.lang.String viewPath)
- Parameters:
viewPath - the viewPath to set
getClientPath
public java.lang.String getClientPath()
- Returns:
- the clientPath
setClientPath
public void setClientPath(java.lang.String clientPath)
- Parameters:
clientPath - the clientPath to set
getProcessName
public java.lang.String getProcessName()
- Returns:
- the processName
setProcessName
public void setProcessName(java.lang.String processName)
- Parameters:
processName - the processName to set
getRecursiveSearch
public java.lang.String getRecursiveSearch()
- Returns:
- the recursiveSearch
setRecursiveSearch
public void setRecursiveSearch(java.lang.String recursiveSearch)
- Parameters:
recursiveSearch - the recursiveSearch to set
isUseSynchronize
public boolean isUseSynchronize()
- Returns:
- the useSynchronize
setUseSynchronize
public void setUseSynchronize(boolean useSynchronize)
- Parameters:
useSynchronize - the useSynchronize to set
Copyright © 2004-2011. All Rights Reserved.