mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 07:35:53 +00:00
Implement @jglick's idea: move implicit dependency modifications to
UpdateSite, when reading plugin metadata
This commit is contained in:
1 parent
4e3295bb2c
commit
dac7decdce
3 files changed
+14
-15
No files matched your search
@@ -1156,19 +1156,6 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
if (p == null) {
|
||||
throw new Failure("No such plugin: " + n);
|
||||
}
|
||||
|
||||
// JENKINS-33308 - automatically install implied/previously bundled dependencies for older plugins that may need them
|
||||
for(PluginWrapper.Dependency previouslyBundledDependency : ClassicPluginStrategy.getImpliedDependencies(p.name, p.requiredCore)) {
|
||||
// if they aren't already installed, note the dependencies show 'need restart' messages if installed multiple times
|
||||
// but it can't be prevented here
|
||||
if(getPlugin(previouslyBundledDependency.shortName) == null) {
|
||||
// as these are basically jenkins core, these should always be installed from the default update center
|
||||
UpdateSite.Plugin previouslyBundledPlugin = getPlugin(previouslyBundledDependency.shortName, UpdateCenter.ID_DEFAULT);
|
||||
Future<UpdateCenter.UpdateCenterJob> jobFuture = previouslyBundledPlugin.deploy(dynamicLoad, correlationId);
|
||||
installJobs.add(jobFuture);
|
||||
}
|
||||
}
|
||||
|
||||
Future<UpdateCenter.UpdateCenterJob> jobFuture = p.deploy(dynamicLoad, correlationId);
|
||||
installJobs.add(jobFuture);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user