提交 fd3aa47a 编写于 作者: K kohsuke

added one more convenience method.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2300 71c3de6d-444a-0410-be80-ed276b4c234a
上级 8e68f19b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册