mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user