public final class UpdateSite.Plugin extends UpdateSite.Entry
Modifier and Type | Field and Description |
---|---|
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.
|
Map<String,String> |
optionalDependencies
Optional dependencies of this plugin.
|
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.
|
name, sourceId, url, version
Constructor and Description |
---|
Plugin(String sourceId,
net.sf.json.JSONObject o) |
Modifier and Type | Method and Description |
---|---|
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.
|
hudson.util.VersionNumber |
getNeededDependenciesRequiredCore() |
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() |
boolean |
isNeededDependenciesCompatibleWithInstalledVersion()
If at least some of the plugin's needed dependencies are already installed, and the new version of the
needed dependencies plugin have 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 |
isNeededDependenciesForNewerJenkins() |
getApi, isNewerThan
@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
@DataBoundConstructor public Plugin(String sourceId, net.sf.json.JSONObject o)
public String getDisplayName()
@Exported public PluginWrapper getInstalled()
PluginWrapper
.
Otherwise null.@Exported public boolean isCompatibleWithInstalledVersion()
@Exported public List<UpdateSite.Plugin> getNeededDependencies()
public boolean isForNewerHudson()
public hudson.util.VersionNumber getNeededDependenciesRequiredCore()
public boolean isNeededDependenciesForNewerJenkins()
public boolean isNeededDependenciesCompatibleWithInstalledVersion()
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
Copyright © 2015. All rights reserved.