mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 23:25:52 +00:00
Don't copy the bundled dependency if the current version is already installed
This commit is contained in:
1 parent
7fc4815e11
commit
01f70d4290
1 file changed
+1
-1
@@ -656,7 +656,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
|
||||
PluginManager manager = Jenkins.getActiveInstance().getPluginManager();
|
||||
VersionNumber installedVersion = manager.getPluginVersion(manager.rootDir, artifactId);
|
||||
if (installedVersion != null && installedVersion.isNewerThan(dependencyVersion)) {
|
||||
if (installedVersion != null && !installedVersion.isOlderThan(dependencyVersion)) {
|
||||
// Do not downgrade dependencies that are already installed.
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user