| Package | Description |
|---|---|
| io.jenkins.tools.pluginmanager.config | |
| io.jenkins.tools.pluginmanager.impl | |
| io.jenkins.tools.pluginmanager.parsers | |
| io.jenkins.tools.pluginmanager.util |
| Modifier and Type | Method and Description |
|---|---|
List<Plugin> |
Config.getPlugins() |
| Modifier and Type | Method and Description |
|---|---|
Config.Builder |
Config.Builder.withPlugins(List<Plugin> plugins) |
| Modifier and Type | Method and Description |
|---|---|
Plugin |
Plugin.getParent() |
Plugin |
Plugin.withDependencies(List<Plugin> dependencies) |
Plugin |
Plugin.withoutDependencies() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Plugin> |
PluginManager.bundledPlugins()
Finds the plugins and their versions bundled in the war file specified in the Config class.
|
Map<String,Plugin> |
PluginManager.findEffectivePlugins(List<Plugin> pluginsToBeDownloaded)
Finds the final set of plugins that have been either been installed or will be downloaded.
|
Map<String,Plugin> |
PluginManager.findPluginsAndDependencies(List<Plugin> requestedPlugins)
Given a list of plugins, finds the recursive set of all dependent plugins.
|
List<Plugin> |
PluginManager.findPluginsToDownload(Map<String,Plugin> requestedPlugins)
Compares the list of all requested plugins to the currently installed plugins to determine the final list of
plugins that will be downloaded
|
List<Plugin> |
Plugin.getDependencies() |
List<Plugin> |
PluginManager.getFailedPlugins()
Gets the list of failed plugins
|
List<Plugin> |
PluginManager.getLatestVersionsOfPlugins(List<Plugin> plugins)
Takes a list of plugins and returns the latest version
Returns existing version if no update
|
Map<String,Plugin> |
PluginManager.installedPlugins()
Finds all the plugins and their versions currently in the plugin directory specified in the Config class
|
List<Plugin> |
PluginManager.resolveDependenciesFromJson(Plugin plugin,
org.json.JSONObject pluginJson)
Given a plugin and json that contains plugin information, determines the dependencies and returns the list of
dependencies.
|
List<Plugin> |
PluginManager.resolveDependenciesFromManifest(Plugin plugin)
Resolves direct dependencies from downloaded plugin manifest.
|
List<Plugin> |
PluginManager.resolveDirectDependencies(Plugin plugin)
Finds the dependencies for plugins by either resolving the information from the manifest or update center json.
|
Map<String,Plugin> |
PluginManager.resolveRecursiveDependencies(Plugin plugin)
Finds all recursive dependencies for a given plugin.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
PluginManager.downloadPlugin(Plugin plugin,
File location)
Downloads a plugin, skipping if already installed or bundled in the war.
|
boolean |
PluginManager.downloadToFile(String urlString,
Plugin plugin,
File fileLocation)
Downloads a plugin from a url to a file.
|
boolean |
PluginManager.downloadToFile(String urlString,
Plugin plugin,
File fileLocation,
int maxRetries)
Downloads a plugin from a url to a file.
|
org.json.JSONArray |
PluginManager.getPluginDependencyJsonArray(Plugin plugin,
org.json.JSONObject ucJson)
Gets the JSONArray containing plugin a
|
String |
PluginManager.getPluginDownloadUrl(Plugin plugin)
Determines the plugin download url.
|
void |
PluginManager.outputPluginReplacementInfo(Plugin lowerVersion,
Plugin higherVersion)
Outputs information about a lower version of a plugin being replaced by a higher version
|
List<Plugin> |
PluginManager.resolveDependenciesFromJson(Plugin plugin,
org.json.JSONObject pluginJson)
Given a plugin and json that contains plugin information, determines the dependencies and returns the list of
dependencies.
|
List<Plugin> |
PluginManager.resolveDependenciesFromManifest(Plugin plugin)
Resolves direct dependencies from downloaded plugin manifest.
|
List<Plugin> |
PluginManager.resolveDirectDependencies(Plugin plugin)
Finds the dependencies for plugins by either resolving the information from the manifest or update center json.
|
Map<String,Plugin> |
PluginManager.resolveRecursiveDependencies(Plugin plugin)
Finds all recursive dependencies for a given plugin.
|
void |
Plugin.setParent(Plugin parent) |
boolean |
PluginManager.warningExists(Plugin plugin)
Checks if a security warning exists for a plugin and its version.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PluginManager.checkVersionCompatibility(hudson.util.VersionNumber jenkinsVersion,
List<Plugin> pluginsToBeDownloaded)
Checks that required Jenkins version of all plugins to be downloaded is less than the Jenkins version in the
user specified Jenkins war file
|
void |
PluginManager.downloadPlugins(List<Plugin> plugins)
Downloads a list of plugins.
|
Map<String,Plugin> |
PluginManager.findEffectivePlugins(List<Plugin> pluginsToBeDownloaded)
Finds the final set of plugins that have been either been installed or will be downloaded.
|
Map<String,Plugin> |
PluginManager.findPluginsAndDependencies(List<Plugin> requestedPlugins)
Given a list of plugins, finds the recursive set of all dependent plugins.
|
List<Plugin> |
PluginManager.findPluginsToDownload(Map<String,Plugin> requestedPlugins)
Compares the list of all requested plugins to the currently installed plugins to determine the final list of
plugins that will be downloaded
|
List<Plugin> |
PluginManager.getLatestVersionsOfPlugins(List<Plugin> plugins)
Takes a list of plugins and returns the latest version
Returns existing version if no update
|
void |
PluginManager.logPlugins(String description,
List<Plugin> plugins)
Given a list of plugins and a description, prints them out
|
void |
PluginManager.setAllPluginsAndDependencies(Map<String,Plugin> allPluginsAndDependencies)
Sets all plugins and their recursive dependencies
|
void |
PluginManager.setBundledPluginVersions(Map<String,Plugin> bundledPlugins)
Sets the bundled plugins
|
void |
Plugin.setDependencies(List<Plugin> dependencies) |
void |
PluginManager.setEffectivePlugins(Map<String,Plugin> effectivePlugins)
Sets the list of effective plugins
|
void |
PluginManager.setInstalledPluginVersions(Map<String,Plugin> installedPlugins)
Sets the installed plugins
|
void |
PluginManager.setPluginsToBeDownloaded(List<Plugin> pluginsToBeDownloaded)
Sets the list of plugins to be downloaded
|
void |
PluginManager.showSpecificSecurityWarnings(List<Plugin> plugins)
Prints out security warning information for a list of plugins if isShowWarnings is set to true in the config
file
|
Plugin |
Plugin.withDependencies(List<Plugin> dependencies) |
| Constructor and Description |
|---|
PluginChecksumMismatchException(Plugin plugin,
String expectedChecksum,
String actualChecksum) |
| Modifier and Type | Method and Description |
|---|---|
String |
PluginOutputConverter.convert(List<Plugin> plugins) |
String |
StdOutPluginOutputConverter.convert(List<Plugin> plugins) |
String |
TxtOutputConverter.convert(List<Plugin> plugins) |
String |
YamlPluginOutputConverter.convert(List<Plugin> plugins) |
| Constructor and Description |
|---|
StdOutPluginOutputConverter(List<Plugin> originalPlugins) |
| Modifier and Type | Method and Description |
|---|---|
static Plugin |
ManifestTools.readPluginFromFile(File file) |
| Modifier and Type | Method and Description |
|---|---|
List<Plugin> |
PluginListParser.parsePluginsFromCliOption(String[] plugins) |
List<Plugin> |
PluginListParser.parsePluginTxtFile(File pluginTxtFile)
Given a txt file that lists the plugins (in the format artifactId:version:url) to be downloaded on each line,
returns a list of Plugin objects representing the requested plugins
|
List<Plugin> |
PluginListParser.parsePluginYamlFile(File pluginYamlFile)
Given a Jenkins yaml file with a plugins root element, will parse the yaml file and create a list of requested
plugins
|
Copyright © 2004–2020. All rights reserved.