mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
[FIXED JENKINS-12753] Added PluginStrategy.getShortName to avoid actually trying to unpack a plugin before throwing RestartRequiredException.
This commit is contained in:
1 parent
9062a944b7
commit
7f856b5608
6 files changed
+78
-15
No files matched your search
@@ -238,7 +238,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
|
||||
return idx != null && idx.toString().contains(shortName) ? idx : null;
|
||||
}
|
||||
|
||||
private String computeShortName(Manifest manifest, File archive) {
|
||||
static String computeShortName(Manifest manifest, File archive) {
|
||||
// use the name captured in the manifest, as often plugins
|
||||
// depend on the specific short name in its URLs.
|
||||
String n = manifest.getMainAttributes().getValue("Short-Name");
|
||||
|
||||
Reference in new issue
Block a user