jenkinsci / jenkinsci/plugin-installation-manager-tool
Some features slightly fragile
- Dominant language
- Java
- Stars
- 463
- Forks
- 228
- Avg merge
- 31m
- Merged PRs (30d)
- 15
Description
Given the following plugins.txt file:
```
active-directory
aws-parameter-store
configuration-as-code
configuration-as-code-secret-ssm
git
github
job-dsl
ldap
role-strategy
timestamper
```
The following command returns an error:
```bash
docker run \
--rm -it \
-v `pwd`/plugins.txt:/app/plugins.txt \
jenkins/jenkins \
jenkins-plugin-cli \
--plugin-file /app/plugins.txt \
--view-all-security-warnings \
--no-download
java.util.ArrayList cannot be cast to java.lang.Comparable
```
This seems to be a bug, can anyone confirm?
If the plugins.txt contains `git:4.1.9`, a different command throws an error when it cannot resolve a version dependency:
```bash
docker run \
--rm -it \
-v `pwd`/plugins.txt:/app/plugins.txt \
jenkins/jenkins \
jenkins-plugin-cli \
--plugin-file /app/plugins.txt \
--view-security-warnings \
--no-download \
--skip-failed-plugins
Downloaded file is not a valid ZIP
Unable to resolve dependencies for git
Plugin github:1.32.0 depends on git:4.5.1, but there is an older version defined on the top level - git:4.1.9
```
For this second error, it would be useful if there were a "--force" or "--ignore-errors" option. The "--skip-failed-plugins" option doesn't seem to change the result.
Contributor guide
Assessment
This issue has not been assessed yet.