Skip to content
Permalink
Browse files

[JENKINS-21486] Only consider plugins detached before the current

version
  • Loading branch information...
Vlatombe committed Jul 29, 2016
1 parent 8e3c9da commit dff8e806b9466652a351dd7fb7f742b6698140db
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/src/test/java/hudson/model/UsageStatisticsTest.java
@@ -105,7 +105,9 @@ public void roundtrip() throws Exception {
List<JSONObject> plugins = sortPlugins((List<JSONObject>) o.get("plugins"));
Set<String> detached = new TreeSet<>();
for (ClassicPluginStrategy.DetachedPlugin p: ClassicPluginStrategy.getDetachedPlugins()) {
detached.add(p.getShortName());
if (p.getSplitWhen().isOlderThan(Jenkins.getVersion())) {
detached.add(p.getShortName());
}
}
Set<String> keys = new TreeSet<>();
keys.add("name");

0 comments on commit dff8e80

Please sign in to comment.
You can’t perform that action at this time.