public <T> T actOnProject(ContextCallable<Job<?,?>, T> callable) throws IOException, InterruptedException { return callable.invoke(project,Channel.current()); }
public <T> T actOnProject(ContextCallable<Job<?,?>, T> callable) throws IOException, InterruptedException { return callable.invoke(project, MasterComputer.localChannel); }
public <T> T actOnBuild(ContextCallable<Run<?,?>, T> callable) throws IOException, InterruptedException { return callable.invoke(build,Hudson.MasterComputer.localChannel); }
public <T> T actOnBuild(ContextCallable<Run<?,?>, T> callable) throws IOException, InterruptedException { return callable.invoke(build,Channel.current()); }
/** * Perform some closure, executing on the project * @param <T> The return type from the closure * @param callable the closure to run * @throws IOException if IO cannot be performed * @throws InterruptedException if the process is interrupted * @return closure return value */ public <T> T actOnProject(ContextCallable<Job<?, ?>, T> callable) throws IOException, InterruptedException { return callable.invoke(project, Hudson.MasterComputer.localChannel); }
/** * Perform some closure, executing on the build * @param <T> The return type from the closure * @param callable the closure to run * @throws IOException if IO cannot be performed * @throws InterruptedException if the process is interrupted * @return closure return value */ public <T> T actOnBuild(ContextCallable<Run<?, ?>, T> callable) throws IOException, InterruptedException { return callable.invoke(build, Hudson.MasterComputer.localChannel); }