hudson.plugins.harvest
Class HarvestSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by 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 Class Summary
static class HarvestSCM.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
HarvestSCM(String broker, String userId, String password, String projectName, String state, String viewPath, String clientPath, String processName, String recursiveSearch, 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, File changeLogFile)
           
protected  List<HarvestChangeLogEntry> checkoutInternal(hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener)
           
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()
           
 String getBroker()
           
 String getClientPath()
           
 HarvestSCM.DescriptorImpl getDescriptor()
           
 String getPassword()
           
 String getProcessName()
           
 String getProjectName()
           
 String getRecursiveSearch()
           
 String getState()
           
 String getUserId()
           
 String getViewPath()
           
 boolean isUseSynchronize()
           
protected  void parse(InputStream inputStream, List<HarvestChangeLogEntry> listOfChanges)
           
protected  hudson.util.ArgumentListBuilder prepareCommand(String executable, String workspacePath)
           
 void setBroker(String broker)
           
 void setClientPath(String clientPath)
           
 void setPassword(String password)
           
 void setProcessName(String processName)
           
 void setProjectName(String projectName)
           
 void setRecursiveSearch(String recursiveSearch)
           
 void setState(String state)
           
 void setUserId(String userId)
           
 void setUseSynchronize(boolean useSynchronize)
           
 void setViewPath(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, pollChanges, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarvestSCM

@DataBoundConstructor
public HarvestSCM(String broker,
                                       String userId,
                                       String password,
                                       String projectName,
                                       String state,
                                       String viewPath,
                                       String clientPath,
                                       String processName,
                                       String recursiveSearch,
                                       Boolean useSynchronize)
Constructor

Parameters:
broker -
userId -
password -
projectName -
state -
viewPath -
clientPath -
processName -
recursiveSearch -
Method Detail

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,
                        File changeLogFile)
                 throws IOException,
                        InterruptedException
Specified by:
checkout in class hudson.scm.SCM
Throws:
IOException
InterruptedException

checkoutInternal

protected List<HarvestChangeLogEntry> checkoutInternal(hudson.Launcher launcher,
                                                       hudson.FilePath workspace,
                                                       hudson.model.TaskListener listener)
                                                throws IOException,
                                                       InterruptedException,
                                                       FileNotFoundException
Throws:
IOException
InterruptedException
FileNotFoundException

prepareCommand

protected hudson.util.ArgumentListBuilder prepareCommand(String executable,
                                                         String workspacePath)

parse

protected void parse(InputStream inputStream,
                     List<HarvestChangeLogEntry> listOfChanges)
              throws IOException
Throws:
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

calcRevisionsFromBuild

public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
                                                          hudson.Launcher launcher,
                                                          hudson.model.TaskListener listener)
                                                   throws IOException,
                                                          InterruptedException
Specified by:
calcRevisionsFromBuild in class hudson.scm.SCM
Throws:
IOException
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 IOException,
                                                             InterruptedException
Specified by:
compareRemoteRevisionWith in class hudson.scm.SCM
Throws:
IOException
InterruptedException

getBroker

public String getBroker()
Returns:
the broker

setBroker

public void setBroker(String broker)
Parameters:
broker - the broker to set

getUserId

public String getUserId()
Returns:
the userId

setUserId

public void setUserId(String userId)
Parameters:
userId - the userId to set

getPassword

public String getPassword()
Returns:
the password

setPassword

public void setPassword(String password)
Parameters:
password - the password to set

getProjectName

public String getProjectName()
Returns:
the projectName

setProjectName

public void setProjectName(String projectName)
Parameters:
projectName - the projectName to set

getState

public String getState()
Returns:
the state

setState

public void setState(String state)
Parameters:
state - the state to set

getViewPath

public String getViewPath()
Returns:
the viewPath

setViewPath

public void setViewPath(String viewPath)
Parameters:
viewPath - the viewPath to set

getClientPath

public String getClientPath()
Returns:
the clientPath

setClientPath

public void setClientPath(String clientPath)
Parameters:
clientPath - the clientPath to set

getProcessName

public String getProcessName()
Returns:
the processName

setProcessName

public void setProcessName(String processName)
Parameters:
processName - the processName to set

getRecursiveSearch

public String getRecursiveSearch()
Returns:
the recursiveSearch

setRecursiveSearch

public void setRecursiveSearch(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.