org.jenkinsci.plugins.postbuildscript.service
Class ScriptExecutor

java.lang.Object
  extended by org.jenkinsci.plugins.postbuildscript.service.ScriptExecutor
All Implemented Interfaces:
java.io.Serializable

public class ScriptExecutor
extends java.lang.Object
implements java.io.Serializable

Author:
Gregory Boissinot
See Also:
Serialized Form

Field Summary
protected  hudson.FilePath executionNodeRootPath
           
protected  PostBuildScriptLog log
           
 
Constructor Summary
ScriptExecutor()
           
 
Method Summary
 java.lang.Object evaluateGroovyScript(java.lang.String scriptContent)
           
 java.lang.Object evaluateGroovyScriptFilePath(java.lang.String scriptFilePath)
           
 int executeScriptAndGetExitCode(java.lang.String scriptContent, hudson.Launcher launcher)
           
 int executeScriptPathAndGetExitCode(java.lang.String scriptFilePath, hudson.Launcher launcher)
           
protected  boolean existsScript(java.lang.String path)
           
protected  java.lang.String getStringContent(java.lang.String filePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executionNodeRootPath

@Inject
protected hudson.FilePath executionNodeRootPath

log

@Inject
protected PostBuildScriptLog log
Constructor Detail

ScriptExecutor

public ScriptExecutor()
Method Detail

executeScriptAndGetExitCode

public int executeScriptAndGetExitCode(java.lang.String scriptContent,
                                       hudson.Launcher launcher)
                                throws PostBuildScriptException
Throws:
PostBuildScriptException

executeScriptPathAndGetExitCode

public int executeScriptPathAndGetExitCode(java.lang.String scriptFilePath,
                                           hudson.Launcher launcher)
                                    throws PostBuildScriptException
Throws:
PostBuildScriptException

getStringContent

protected java.lang.String getStringContent(java.lang.String filePath)
                                     throws PostBuildScriptException
Throws:
PostBuildScriptException

existsScript

protected boolean existsScript(java.lang.String path)
                        throws PostBuildScriptException
Throws:
PostBuildScriptException

evaluateGroovyScript

public java.lang.Object evaluateGroovyScript(java.lang.String scriptContent)
                                      throws PostBuildScriptException
Throws:
PostBuildScriptException

evaluateGroovyScriptFilePath

public java.lang.Object evaluateGroovyScriptFilePath(java.lang.String scriptFilePath)
                                              throws PostBuildScriptException
Throws:
PostBuildScriptException


Copyright © 2004-2011. All Rights Reserved.