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