提交 33db5445 编写于 作者: K Kohsuke Kawaguchi

Coding live from FOSDEM! Deletion should send you to the next build.

This will prevent people from accidentally deleting the project when they are trying to bulk-delete buid records
上级 e9f648a7
......@@ -2107,6 +2107,9 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
return;
}
RunT nb = getNextBuild();
try{
delete();
}
......@@ -2116,8 +2119,8 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
req.setAttribute("stackTraces", writer);
req.getView(this, "delete-retry.jelly").forward(req, rsp);
return;
}
rsp.sendRedirect2(req.getContextPath()+'/' + getParent().getUrl());
}
rsp.sendRedirect2(req.getContextPath()+'/' + (nb!=null ? nb.getUrl() : getParent().getUrl());
}
public void setDescription(String description) throws IOException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册