mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 07:05:55 +00:00
Plugin manager now honors the plugin URL from inside .hpi, not just from the update center.
(<a href="http://www.nabble.com/Plugin-deployment-issues-td21982824.html">report</a>) git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15281 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
e651ff600f
commit
616036a17a
2 files changed
+21
-19
No files matched your search
@@ -224,6 +224,24 @@ public final class PluginWrapper {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the URL that shows more information about this plugin.
|
||||
* @return
|
||||
* null if this information is unavailable.
|
||||
* @since 1.283
|
||||
*/
|
||||
public String getUrl() {
|
||||
// first look for the manifest entry. This is new in maven-hpi-plugin 1.30
|
||||
String url = manifest.getMainAttributes().getValue("Url");
|
||||
if(url!=null) return url;
|
||||
|
||||
// fallback to update center metadata
|
||||
UpdateCenter.Plugin ui = getInfo();
|
||||
if(ui!=null) return ui.wiki;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Plugin:" + getShortName();
|
||||
|
||||
Reference in new issue
Block a user