mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
Link to the deprecation URL, not the plugin URL
This commit is contained in:
1 parent
ab97dbbdaf
commit
9ae93b67a0
2 files changed
+5
-11
No files matched your search
@@ -145,6 +145,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Supplier;
|
||||
import java.util.jar.JarEntry;
|
||||
import java.util.jar.JarFile;
|
||||
@@ -2257,10 +2258,10 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
return !getDeprecatedPlugins().isEmpty();
|
||||
}
|
||||
|
||||
public List<PluginWrapper> getDeprecatedPlugins() {
|
||||
public Map<PluginWrapper, String> getDeprecatedPlugins() {
|
||||
return Jenkins.get().getPluginManager().getPlugins().stream()
|
||||
.filter(PluginWrapper::isDeprecated)
|
||||
.collect(Collectors.toList());
|
||||
.collect(Collectors.toMap(Function.identity(), it -> it.getDeprecations().get(0).url));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user