提交 53f21774 编写于 作者: J Jesse Glick

[FIXED JENKINS-15042] “Took…on master” shown for a build which ran on a slave...

[FIXED JENKINS-15042] “Took…on master” shown for a build which ran on a slave which was since deleted.
上级 fd8fa543
......@@ -55,6 +55,9 @@ Upcoming changes</a>
<!-- 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=-->
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册