提交 8547bf78 编写于 作者: M mdonohue

Make the UpstreamCause constructor take a wider type


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17617 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d06bbf08
......@@ -61,10 +61,10 @@ public abstract class Cause {
private transient Cause upstreamCause;
private List<Cause> upstreamCauses = new ArrayList<Cause>();
public UpstreamCause(AbstractBuild<?, ?> up) {
public UpstreamCause(Run<?, ?> up) {
upstreamBuild = up.getNumber();
upstreamProject = up.getProject().getName();
upstreamUrl = up.getProject().getUrl();
upstreamProject = up.getParent().getName();
upstreamUrl = up.getParent().getUrl();
CauseAction ca = up.getAction(CauseAction.class);
upstreamCauses = ca == null ? null : ca.getCauses();
}
......
<!--
<!--
The MIT License
Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册