added one more convenience method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2300 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-03-03 01:22:50 +00:00
1 parent 8e68f19bb3
commit fd3aa47a0f
1 file changed
+7
@@ -95,6 +95,13 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
*/
protected Launcher launcher;
/**
* Returns the current {@link Node} on which we are buildling.
*/
protected final Node getCurrentNode() {
return Executor.currentExecutor().getOwner().getNode();
}
public Result run(BuildListener listener) throws Exception {
Node node = Executor.currentExecutor().getOwner().getNode();
assert builtOn==null;