com.cwctravel.hudson.plugins.script_scm
Class ScriptSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by com.cwctravel.hudson.plugins.script_scm.ScriptSCM
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>

public class ScriptSCM
extends hudson.scm.SCM


Nested Class Summary
static class ScriptSCM.DescriptorImpl
           
static class ScriptSCM.PropertiesBuilder
           
static class ScriptSCM.Utils
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
ScriptSCM(java.lang.String groovyScript, java.lang.String groovyScriptFile, java.lang.String bindings)
           
 
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()
           
 void executeAnt(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.TaskListener listener, java.lang.String targets, java.lang.String antName, java.lang.String antOpts, java.lang.String buildFile, java.lang.String properties)
           
 void executeAnt(hudson.model.AbstractProject<?,?> project, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener, java.lang.String targets, java.lang.String antName, java.lang.String antOpts, java.lang.String buildFile, java.lang.String properties)
           
 java.lang.String getBindings()
           
 hudson.scm.RepositoryBrowser<ScriptSCMChangeLogEntry> getBrowser()
           
 java.lang.String getGroovyScript()
           
 java.lang.String getGroovyScriptFile()
           
 void setBindings(java.lang.String bindings)
           
 void setGroovyScript(java.lang.String groovyScript)
           
 void setGroovyScriptFile(java.lang.String groovyScriptFile)
           
 
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, all, buildEnvVars, createEmptyChangeLog, getApi, getDescriptor, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptSCM

public ScriptSCM(java.lang.String groovyScript,
                 java.lang.String groovyScriptFile,
                 java.lang.String bindings)
Method Detail

executeAnt

public void executeAnt(hudson.model.AbstractProject<?,?> project,
                       hudson.FilePath workspace,
                       hudson.Launcher launcher,
                       hudson.model.TaskListener listener,
                       java.lang.String targets,
                       java.lang.String antName,
                       java.lang.String antOpts,
                       java.lang.String buildFile,
                       java.lang.String properties)
                throws ScriptTriggerException
Throws:
ScriptTriggerException

executeAnt

public void executeAnt(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.TaskListener listener,
                       java.lang.String targets,
                       java.lang.String antName,
                       java.lang.String antOpts,
                       java.lang.String buildFile,
                       java.lang.String properties)
                throws ScriptTriggerException
Throws:
ScriptTriggerException

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

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

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

createChangeLogParser

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

getBrowser

public hudson.scm.RepositoryBrowser<ScriptSCMChangeLogEntry> getBrowser()
Overrides:
getBrowser in class hudson.scm.SCM

getGroovyScript

public java.lang.String getGroovyScript()

setGroovyScript

public void setGroovyScript(java.lang.String groovyScript)

getGroovyScriptFile

public java.lang.String getGroovyScriptFile()

setGroovyScriptFile

public void setGroovyScriptFile(java.lang.String groovyScriptFile)

getBindings

public java.lang.String getBindings()

setBindings

public void setBindings(java.lang.String bindings)


Copyright © 2004-2013. All Rights Reserved.