org.jenkinsci.plugins.postbuildscript.service
Class ScriptExecutor
java.lang.Object
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
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(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.