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
Nested Classes -
Method Summary
Modifier and TypeMethodDescription<T> TactOnBuild(BuildChooserContext.ContextCallable<Run<?, ?>, T> callable) <T> TactOnProject(BuildChooserContext.ContextCallable<Job<?, ?>, T> callable) Run<?,?> getBuild()
-
Method Details
-
actOnBuild
<T> T actOnBuild(BuildChooserContext.ContextCallable<Run<?, ?>, throws IOException, InterruptedExceptionT> callable) - Throws:
IOExceptionInterruptedException
-
actOnProject
<T> T actOnProject(BuildChooserContext.ContextCallable<Job<?, ?>, throws IOException, InterruptedExceptionT> callable) - Throws:
IOExceptionInterruptedException
-
getBuild
Run<?,?> getBuild() -
getEnvironment
EnvVars getEnvironment()
-