jenkinsci / jenkinsci/java-client-api
List installed build tools
- Vorherrschende Sprache
- Java
- Sterne
- 913
- Forks
- 466
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I manage a bunch of jenkins servers with the client api, and I want to check what build tools are already installed on each installation.
How can I list the contents of ```https://jenkins-installation-hostname/configureTools/``` ?
```java
JenkinsServer jenkins = new JenkinsServer(..);
JenkinsBuildTools tools = jenkins.getBuildTools();
List jdks = tools.getJdks();
List mavens = tools.getMavens();
Map>> pluginNameToPluginDetails = tools.getRaw();
// "maven" -> [ ("version" -> "3.3.9", "installAutomatic" -> "true", "install from apache" -> "3.3.9", ...),
// ("version" -> "3.5.0", ..)]
// "java" -> [ ("version" -> "8u131", ..),
// ("version" -> "8u60", ..),
// ("version" -> "7u80", ..),
// ]
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.