提交 aa79d15e 编写于 作者: K Kohsuke Kawaguchi

doc improvement

上级 652df333
......@@ -395,6 +395,11 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
/**
* Gets the {@link Executor} building this job, if it's being built.
* Otherwise null.
*
* This method looks for {@link Executor} who's {@linkplain Executor#getCurrentExecutable() assigned to this build},
* and because of that this might not be necessarily in sync with the return value of {@link #isBuilding()} &mdash;
* 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}.)
*/
public Executor getExecutor() {
for( Computer c : Jenkins.getInstance().getComputers() ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册