mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-28 20:15:22 +00:00
improved robustness.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1941 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
bf63784c7e
commit
436fd1f3bd
1 file changed
+5
@@ -276,6 +276,11 @@ public final class PluginWrapper {
|
||||
public String getVersion() {
|
||||
String v = manifest.getMainAttributes().getValue("Plugin-Version");
|
||||
if(v!=null) return v;
|
||||
|
||||
// plugins generated before maven-hpi-plugin 1.3 should still have this attribute
|
||||
v = manifest.getMainAttributes().getValue("Implementation-Version");
|
||||
if(v!=null) return v;
|
||||
|
||||
return "???";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user