mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
hack to avoid double-registration.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14616 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
d21f4534ac
commit
0508d65eea
1 file changed
+10
@@ -158,5 +158,15 @@ public interface BuildStep {
|
||||
int idx = super.indexOf(Mailer.DESCRIPTOR);
|
||||
add(idx,d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean add(Descriptor<Publisher> d) {
|
||||
return !contains(d) && super.add(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(int index, Descriptor<Publisher> d) {
|
||||
if(!contains(d)) super.add(index, d);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user