|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.UpdateSite.Entry
hudson.model.UpdateSite.Plugin
public final class UpdateSite.Plugin
| Field Summary | |
|---|---|
String[] |
categories
Categories for grouping plugins, taken from labels assigned to wiki page. |
String |
compatibleSinceVersion
Optional version # from which this plugin release is configuration-compatible. |
Map<String,String> |
dependencies
Dependencies of this plugin. |
String |
excerpt
Optional excerpt string. |
String |
requiredCore
Version of Jenkins core this plugin was compiled against. |
String |
title
Human readable title of the plugin, taken from Wiki page. |
String |
wiki
Optional URL to the Wiki page that discusses this plugin. |
| Fields inherited from class hudson.model.UpdateSite.Entry |
|---|
name, sourceId, url, version |
| Constructor Summary | |
|---|---|
UpdateSite.Plugin(String sourceId,
net.sf.json.JSONObject o)
|
|
| Method Summary | |
|---|---|
Future<UpdateCenter.UpdateCenterJob> |
deploy()
|
Future<UpdateCenter.UpdateCenterJob> |
deploy(boolean dynamicLoad)
Schedules the installation of this plugin. |
Future<UpdateCenter.UpdateCenterJob> |
deployBackup()
Schedules the downgrade of this plugin. |
org.kohsuke.stapler.HttpResponse |
doDowngrade()
Performs the downgrade of the plugin. |
org.kohsuke.stapler.HttpResponse |
doInstall()
Making the installation web bound. |
org.kohsuke.stapler.HttpResponse |
doInstallNow()
|
String |
getDisplayName()
|
PluginWrapper |
getInstalled()
If some version of this plugin is currently installed, return PluginWrapper. |
List<UpdateSite.Plugin> |
getNeededDependencies()
Returns a list of dependent plugins which need to be installed or upgraded for this plugin to work. |
void |
install()
Deprecated. as of 1.326 Use deploy(). |
boolean |
isCompatibleWithInstalledVersion()
If the plugin is already installed, and the new version of the plugin has a "compatibleSinceVersion" value (i.e., it's only directly compatible with that version or later), this will check to see if the installed version is older than the compatible-since version. |
boolean |
isForNewerHudson()
|
| Methods inherited from class hudson.model.UpdateSite.Entry |
|---|
getApi, isNewerThan |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Exported public final String wiki
@Exported public final String title
beware of XSS vulnerability since this data comes from Wiki
@Exported public final String excerpt
@Exported public final String compatibleSinceVersion
@Exported public final String requiredCore
@Exported public final String[] categories
@Exported public final Map<String,String> dependencies
| Constructor Detail |
|---|
@DataBoundConstructor
public UpdateSite.Plugin(String sourceId,
net.sf.json.JSONObject o)
| Method Detail |
|---|
public String getDisplayName()
@Exported public PluginWrapper getInstalled()
PluginWrapper.
Otherwise null.
@Exported public boolean isCompatibleWithInstalledVersion()
@Exported public List<UpdateSite.Plugin> getNeededDependencies()
public boolean isForNewerHudson()
public void install()
deploy().
public Future<UpdateCenter.UpdateCenterJob> deploy()
public Future<UpdateCenter.UpdateCenterJob> deploy(boolean dynamicLoad)
This is mainly intended to be called from the UI. The actual installation work happens asynchronously in another thread.
dynamicLoad - If true, the plugin will be dynamically loaded into this Jenkins. If false,
the plugin will only take effect after the reboot.
See UpdateCenter.isRestartRequiredForCompletion()public Future<UpdateCenter.UpdateCenterJob> deployBackup()
public org.kohsuke.stapler.HttpResponse doInstall()
throws IOException
IOException
public org.kohsuke.stapler.HttpResponse doInstallNow()
throws IOException
IOException
public org.kohsuke.stapler.HttpResponse doDowngrade()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||