diff --git a/core/src/main/java/hudson/model/Computer.java b/core/src/main/java/hudson/model/Computer.java index 0d564dd83b879dd0c1f7db6c3307fc1b995d9c93..a652d862b91020c7d3dce4f6c46c8eb36b4e3142 100644 --- a/core/src/main/java/hudson/model/Computer.java +++ b/core/src/main/java/hudson/model/Computer.java @@ -62,6 +62,7 @@ import hudson.util.RunList; import hudson.util.Futures; import hudson.util.NamingThreadFactory; import jenkins.model.Jenkins; +import jenkins.model.queue.AsynchronousExecution; import jenkins.util.ContextResettingExecutorService; import jenkins.security.MasterToSlaveCallable; import org.kohsuke.accmod.Restricted; @@ -898,12 +899,18 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces List result = new ArrayList(executors.size()+oneOffExecutors.size()); int index = 0; for (Executor e: executors) { - result.add(new DisplayExecutor(Integer.toString(index+1), String.format("executors/%d", index), e)); + final AsynchronousExecution ae = e.getAsynchronousExecution(); + if (ae == null || ae.displayCell()) { + result.add(new DisplayExecutor(Integer.toString(index + 1), String.format("executors/%d", index), e)); + } index++; } index = 0; for (OneOffExecutor e: oneOffExecutors) { - result.add(new DisplayExecutor("", String.format("oneOffExecutors/%d", index), e)); + final AsynchronousExecution ae = e.getAsynchronousExecution(); + if (ae == null || ae.displayCell()) { + result.add(new DisplayExecutor("", String.format("oneOffExecutors/%d", index), e)); + } index++; } return result; diff --git a/core/src/main/resources/lib/hudson/executors.jelly b/core/src/main/resources/lib/hudson/executors.jelly index 30194b01757c006d93281b2f5837665f7698aa5e..532720cd85815c32b5174308feabe38330fbaebc 100644 --- a/core/src/main/resources/lib/hudson/executors.jelly +++ b/core/src/main/resources/lib/hudson/executors.jelly @@ -39,8 +39,7 @@ THE SOFTWARE. (${%suspended}) - - + ${name}