Skip to content

Commit

Permalink
[FIXED JENKINS-26900] AsynchronousExecution.displayCell
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Mar 24, 2015
1 parent 8589b21 commit bb80340
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Expand Up @@ -74,6 +74,12 @@ protected AsynchronousExecution() {}
*/
public abstract boolean blocksRestart();

/**
* Allows an executable to control whether or not to display {@code executorCell.jelly}.
* @return traditionally always true
*/
public abstract boolean displayCell();

/**
* Obtains the associated executor.
*/
Expand Down
3 changes: 2 additions & 1 deletion core/src/main/resources/lib/hudson/executors.jelly
Expand Up @@ -39,8 +39,9 @@ THE SOFTWARE.
<j:if test="${!c.acceptingTasks}"> <st:nbsp/> (${%suspended})</j:if>
</d:tag>
<d:tag name="executor">
<j:set var="ae" value="${e.asynchronousExecution}"/>
<j:choose>
<j:when test="${!c.offline or (c.offline and !e.idle)}">
<j:when test="${(!c.offline or (c.offline and !e.idle)) and (ae == null || ae.displayCell())}">
<tr>
<td class="pane" align="right" style="vertical-align: top">
${name}
Expand Down

0 comments on commit bb80340

Please sign in to comment.