提交 aaecf791 编写于 作者: J Jesse Glick

[FIXED JENKINS-14816] 404 navigating to upstream builds.

上级 43f1f5d1
......@@ -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>
Avoid a 404 when navigating to upstream builds.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-14816">issue 14816</a>)
<li class=bug>
Avoid a 404 when canceling queue items.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-14813">issue 14813</a>)
......
......@@ -23,6 +23,10 @@ THE SOFTWARE.
-->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<!-- upstreamUrl added in 1.284, so handle missing value -->
<span><j:out value='${it.upstreamUrl!=null ? "%started_by_project(it.upstreamProject,it.upstreamBuild.toString(),it.upstreamUrl,rootURL)" : it.shortDescription}' /></span>
<!-- upstreamUrl added in 1.284, so handle missing value; also JENKINS-14816 (job/build may have been deleted) -->
<span><j:out value='${it.upstreamUrl!=null and
app.getItemByFullName(it.upstreamProject)!=null and
app.getItemByFullName(it.upstreamProject).getBuildByNumber(it.upstreamBuild)!=null ?
"%started_by_project(it.upstreamProject,it.upstreamBuild.toString(),it.upstreamUrl,rootURL)" :
it.shortDescription}'/></span>
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册