mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-07 09:06:03 +00:00
[JENKINS-55582] Refinement to at least handle nonstandard $JENKINS_HOME/plugins/$shortName.hpi and warn about $shortName-$version.hpi.
This commit is contained in:
6 files changed
+19
-1
No files matched your search
@@ -186,6 +186,10 @@ public class ClassicPluginStrategy implements PluginStrategy {
|
||||
} catch (InvalidPathException e) {
|
||||
throw new IOException(e);
|
||||
}
|
||||
String canonicalName = manifest.getMainAttributes().getValue("Short-Name") + ".jpi";
|
||||
if (!archive.getName().equals(canonicalName)) {
|
||||
LOGGER.warning(() -> "encountered " + archive + " under a nonstandard name; expected " + canonicalName);
|
||||
}
|
||||
}
|
||||
|
||||
final Attributes atts = manifest.getMainAttributes();
|
||||
|
||||
Reference in new issue
Block a user