Class GroovyScript
java.lang.Object
jenkins.security.MasterToSlaveCallable<Object,RuntimeException>
org.jenkinsci.plugins.scriptler.util.GroovyScript
- All Implemented Interfaces:
hudson.remoting.Callable<Object,
,RuntimeException> Serializable
,org.jenkinsci.remoting.RoleSensitive
- Direct Known Subclasses:
ControllerGroovyScript
Inspired by hudson.util.RemotingDiagnostics.Script, but adding parameters.
- See Also:
-
Constructor Summary
ConstructorDescriptionGroovyScript
(String script, Collection<Parameter> parameters, boolean failWithException, TaskListener listener) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncall()
protected void
setShellVariables
(groovy.lang.GroovyShell shell) Methods inherited from class jenkins.security.MasterToSlaveCallable
checkRoles
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.remoting.Callable
getChannelOrFail, getOpenChannelOrFail
-
Constructor Details
-
GroovyScript
public GroovyScript(String script, @NonNull Collection<Parameter> parameters, boolean failWithException, TaskListener listener) Constructor- Parameters:
script
- the script to be executedparameters
- the parameters to be passed to the scriptfailWithException
- should the job fail with an exceptionlistener
- access to logging via listener
-
-
Method Details
-
getClassLoader
-
call
-
setShellVariables
protected void setShellVariables(@NonNull groovy.lang.GroovyShell shell)
-