ssscm
Class ShellScriptSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by ssscm.ShellScriptSCM
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>, java.io.Serializable

public class ShellScriptSCM
extends hudson.scm.SCM
implements java.io.Serializable

Author:
Richard Sczepczenski
See Also:
Serialized Form

Nested Class Summary
static class ShellScriptSCM.DescriptorImpl
          Descriptor for ShellScriptSCM.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
ShellScriptSCM(java.lang.String checkoutShell, java.lang.String pollingShell)
          Creates the ShellScriptSCM
ShellScriptSCM(java.lang.String checkoutShell, java.lang.String pollingShell, java.lang.Boolean useCheckoutForPolling)
          Creates the ShellScriptSCM
 
Method Summary
 boolean checkout(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, java.io.File changelogFile)
           
 hudson.scm.ChangeLogParser createChangeLogParser()
           
 java.lang.String getCheckoutShell()
           
 ShellScriptSCM.DescriptorImpl getDescriptor()
           
 java.lang.String getPollingShell()
           
 boolean isUseCheckoutForPolling()
           
 boolean pollChanges(hudson.model.AbstractProject project, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener)
           
 void setCheckoutShell(java.lang.String checkoutShell)
           
 void setPollingShell(java.lang.String pollingShell)
           
 void setUseCheckoutForPolling(java.lang.Boolean useCheckoutForPolling)
           
 
Methods inherited from class hudson.scm.SCM
_for, all, buildEnvVars, createEmptyChangeLog, getBrowser, getEffectiveBrowser, getModuleRoot, getModuleRoots, nullify, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellScriptSCM

public ShellScriptSCM(java.lang.String checkoutShell,
                      java.lang.String pollingShell)
Creates the ShellScriptSCM

Parameters:
checkoutShell - The shell command used when a checkout is done
pollingShell - The shell command to use for polling

ShellScriptSCM

@DataBoundConstructor
public ShellScriptSCM(java.lang.String checkoutShell,
                                           java.lang.String pollingShell,
                                           java.lang.Boolean useCheckoutForPolling)
Creates the ShellScriptSCM

Parameters:
checkoutShell - The shell command used when a checkout is done
pollingShell - The shell command to use for polling
useCheckoutForPolling - Set to true to use the checkout shell for polling, false if the polling shell is to be used for polling.
Method Detail

getCheckoutShell

@Exported
public java.lang.String getCheckoutShell()
Returns:
The shell command used when a checkout is done

setCheckoutShell

@Exported
public void setCheckoutShell(java.lang.String checkoutShell)
Parameters:
checkoutShell - The shell command used when a checkout is done

getPollingShell

@Exported
public java.lang.String getPollingShell()
Returns:
the pollingShell

setPollingShell

@Exported
public void setPollingShell(java.lang.String pollingShell)
Parameters:
pollingShell - The shell command to use for polling

isUseCheckoutForPolling

@Exported
public boolean isUseCheckoutForPolling()
Returns:
true if the checkout shell is to be used for polling, false if the polling shell is to be used for polling.

setUseCheckoutForPolling

@Exported
public void setUseCheckoutForPolling(java.lang.Boolean useCheckoutForPolling)
Parameters:
useCheckoutForPolling - Set to true to use the checkout shell for polling, false if the polling shell is to be used for polling.

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

createChangeLogParser

public hudson.scm.ChangeLogParser createChangeLogParser()
Specified by:
createChangeLogParser in class hudson.scm.SCM

pollChanges

public boolean pollChanges(hudson.model.AbstractProject project,
                           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

getDescriptor

public ShellScriptSCM.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>
Overrides:
getDescriptor in class hudson.scm.SCM


Copyright © 2011. All Rights Reserved.