Package hudson.plugins.git.util
Interface BuildChooserContext
public interface BuildChooserContext
Provides access to the model object on the controller for
BuildChooser
.
BuildChooser
runs on a node that has the workspace, which means it can run on an agent.
This interface provides access for BuildChooser
to send a closure to the controller and execute code there.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
actOnBuild
(BuildChooserContext.ContextCallable<Run<?, ?>, T> callable) <T> T
actOnProject
(BuildChooserContext.ContextCallable<Job<?, ?>, T> callable) Run<?,
?> getBuild()
-
Method Details
-
actOnBuild
<T> T actOnBuild(BuildChooserContext.ContextCallable<Run<?, ?>, throws IOException, InterruptedExceptionT> callable) - Throws:
IOException
InterruptedException
-
actOnProject
<T> T actOnProject(BuildChooserContext.ContextCallable<Job<?, ?>, throws IOException, InterruptedExceptionT> callable) - Throws:
IOException
InterruptedException
-
getBuild
Run<?,?> getBuild() -
getEnvironment
EnvVars getEnvironment()
-