Class UpdateCenterMetadata
- java.lang.Object
-
- org.jenkinsci.test.acceptance.update_center.UpdateCenterMetadata
-
public class UpdateCenterMetadata extends Object
Databinding for Update Center metadata- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UpdateCenterMetadata.UnableToResolveDependencies
Deprecated.Not used when runningMockUpdateCenter
.
-
Field Summary
Fields Modifier and Type Field Description String
id
Map<String,PluginMetadata>
plugins
Details of plugins by their name.
-
Constructor Summary
Constructors Constructor Description UpdateCenterMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static UpdateCenterMetadata
get(String id, Map<String,PluginMetadata> plugins)
static UpdateCenterMetadata
parse(File data)
Create metadata parsing Jenkins update center file.List<PluginMetadata>
transitiveDependenciesOf(Jenkins jenkins, Collection<PluginSpec> plugins)
Deprecated.Not used when runningMockUpdateCenter
.
-
-
-
Field Detail
-
plugins
public Map<String,PluginMetadata> plugins
Details of plugins by their name.
-
id
public String id
-
-
Method Detail
-
parse
public static UpdateCenterMetadata parse(File data) throws IOException
Create metadata parsing Jenkins update center file.- Parameters:
data
- .json or .json.html file served from update center.- Throws:
IOException
-
get
public static UpdateCenterMetadata get(String id, Map<String,PluginMetadata> plugins)
-
transitiveDependenciesOf
@Deprecated public List<PluginMetadata> transitiveDependenciesOf(Jenkins jenkins, Collection<PluginSpec> plugins) throws UpdateCenterMetadata.UnableToResolveDependencies
Deprecated.Not used when runningMockUpdateCenter
.Find all the transitive dependency plugins of the given plugins, in the order of installation.Resolved plugins set should satisfy required versions including Jenkins version.
Transitive dependencies will not be included if there is an already valid version of the plugin installed.
- Throws:
UpdateCenterMetadata.UnableToResolveDependencies
- When there requested plugin version can not be installed.
-
-