org.jenkinsci.plugins.postbuildscript.service
Class ScriptExecutor
java.lang.Object
org.jenkinsci.plugins.postbuildscript.service.ScriptExecutor
- All Implemented Interfaces:
- Serializable
public class ScriptExecutor
- extends Object
- implements Serializable
- Author:
- Gregory Boissinot
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
executionNodeRootPath
@Inject
protected hudson.FilePath executionNodeRootPath
log
@Inject
protected PostBuildScriptLog log
ScriptExecutor
public ScriptExecutor()
executeScriptAndGetExitCode
public int executeScriptAndGetExitCode(String scriptContent,
hudson.Launcher launcher)
throws PostBuildScriptException
- Throws:
PostBuildScriptException
executeScriptPathAndGetExitCode
public int executeScriptPathAndGetExitCode(String scriptFilePath,
hudson.Launcher launcher)
throws PostBuildScriptException
- Throws:
PostBuildScriptException
getStringContent
protected String getStringContent(String filePath)
throws PostBuildScriptException
- Throws:
PostBuildScriptException
existsScript
protected boolean existsScript(String path)
throws PostBuildScriptException
- Throws:
PostBuildScriptException
evaluateGroovyScript
public Object evaluateGroovyScript(String scriptContent)
throws PostBuildScriptException
- Throws:
PostBuildScriptException
evaluateGroovyScriptFilePath
public Object evaluateGroovyScriptFilePath(String scriptFilePath)
throws PostBuildScriptException
- Throws:
PostBuildScriptException
Copyright © 2004-2011. All Rights Reserved.