提交 bc6c0be4 编写于 作者: V vincentkok 提交者: Kohsuke Kawaguchi

Add @Exported annotation to the executor of a Run to have more information on...

Add @Exported annotation to the executor of a Run to have more information on a running Job via the remote API
上级 3ffb2f81
......@@ -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>
......
......@@ -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()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册