Add @Exported annotation to the executor of a Run to have more information on a running Job via the remote API

This commit is contained in:
vincentkok authored and Kohsuke Kawaguchi committed 2012-07-26 11:24:40 +09:00
1 parent 3ffb2f8191
commit bc6c0be406
2 files changed
+4

No files matched your search

+3
View File
@@ -75,6 +75,9 @@ Upcoming changes</a>
Added REST API for view manipulation
<li class="rfe">
OS X installer now has an Uninstall tool (in /Library/Application Support/Jenkins).
<li class=rfe>
Executor is exposed to the remote API
(<a href="https://github.com/jenkinsci/jenkins/pull/520">pull 520</a>)
<li class=rfe>
Changed defaults for the Mac installer to make iOS codesigning easier.
</ul>
+1
View File
@@ -422,6 +422,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
* an executor holds on to {@lnk Run} some more time even after the build is finished (for example to
* perform {@linkplain State#POST_PRODUCTION post-production processing}.)
*/
@Exported
public Executor getExecutor() {
for( Computer c : Jenkins.getInstance().getComputers() ) {
for (Executor e : c.getExecutors()) {