mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
[FIXED HUDSON-5981] allow plugins to add self-referencing project dependencies
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31935 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
2bb5df0105
commit
0d53810761
1 file changed
-2
@@ -177,8 +177,6 @@ public final class DependencyGraph implements Comparator<AbstractProject> {
|
||||
public void addDependency(Dependency dep) {
|
||||
if(built)
|
||||
throw new IllegalStateException();
|
||||
if(dep.getUpstreamProject()==dep.getDownstreamProject())
|
||||
return;
|
||||
add(forward,dep.getUpstreamProject(),dep);
|
||||
add(backward,dep.getDownstreamProject(),dep);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user