Skip to content

Commit

Permalink
[FIXED JENKINS-15042] “Took…on master” shown for a build which ran on…
Browse files Browse the repository at this point in the history
… a slave which was since deleted.
  • Loading branch information
jglick committed Sep 4, 2012
1 parent fd8fa54 commit 53f2177
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -55,6 +55,9 @@
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=bug>
“Took…on master” shown for a build which ran on a slave which was since deleted.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-15042">issue 15042</a>)
<li class=>
</ul>
</div><!--=TRUNK-END=-->
Expand Down
Expand Up @@ -41,8 +41,8 @@ THE SOFTWARE.
<j:if test="${!it.building}">
${%Took} <a href="${rootURL}/${it.parent.url}buildTimeTrend">${it.durationString}</a>
</j:if>
<j:if test="${!empty(app.slaves)}">
${%on} <t:node value="${it.builtOn}"/>
<j:if test="${!empty(app.slaves) or (it.builtOnStr != null and it.builtOnStr != '')}">
${%on} <t:node value="${it.builtOn}" valueStr="${it.builtOnStr}"/>
</j:if>
</div>
</div>
Expand Down
Expand Up @@ -66,7 +66,7 @@ THE SOFTWARE.
</td>
<j:if test="${isMasterSlaveEnabled}">
<td>
<t:node value="${r.builtOn}"/>
<t:node value="${r.builtOn}" valueStr="${r.builtOnStr}"/>
</td>
</j:if>
</tr>
Expand Down
4 changes: 4 additions & 0 deletions core/src/main/resources/lib/hudson/node.jelly
Expand Up @@ -27,11 +27,15 @@ THE SOFTWARE.
<st:documentation>
Displays a link to a node.
<st:attribute name="value" use="required" type="Node"/>
<st:attribute name="valueStr" use="optional" type="String"/>
</st:documentation>
<j:choose>
<j:when test="${value!=null and value!=app}">
<a href="${rootURL}/computer/${value.nodeName}" class="model-link">${value.nodeName}</a>
</j:when>
<j:when test="${valueStr != null and valueStr != ''}">
${valueStr}
</j:when>
<j:otherwise>
${%master}
</j:otherwise>
Expand Down

0 comments on commit 53f2177

Please sign in to comment.