diff --git a/core/src/main/java/hudson/model/Executor.java b/core/src/main/java/hudson/model/Executor.java index 0c37bcf867c87c2a5b8f4b51b896f20edc3a2c59..2577e1927a17ac322551d5c9ef08d215b788ff4c 100644 --- a/core/src/main/java/hudson/model/Executor.java +++ b/core/src/main/java/hudson/model/Executor.java @@ -247,6 +247,13 @@ public class Executor extends Thread implements ModelObject { } } + /** + * Exposes the executor to the remote API. + */ + public Api getApi() { + return new Api(this); + } + /** * Returns the executor of the current thread. */