jenkinsci / jenkinsci/plugin-installation-manager-tool
Validation for the optional dependencies fails with `2.9.0`
- Dominant language
- Java
- Stars
- 463
- Forks
- 228
- Avg merge
- 31m
- Merged PRs (30d)
- 15
Description
### Version report
Jenkins and plugins versions report: 2.289.1-lts-jdk11
```
cloudbees-disk-usage-simple:0.10
opentelemetry::https://repo.jenkins-ci.org/incrementals/io/jenkins/plugins/opentelemetry/0.16-rc359.9eae24591360/opentelemetry-0.16-rc359.9eae24591360.hpi
```
- What Operating System are you using (both controller, and any agents involved in the problem)?
```
Docker
```
### Reproduction steps
- Dockerfile
```
FROM jenkins/jenkins:2.289.1-lts-jdk11
RUN jenkins-plugin-cli --latest false --plugins cloudbees-disk-usage-simple:0.10 opentelemetry::https://github.com/jenkinsci/opentelemetry-plugin/releases/download/0.14-beta/opentelemetry-0.14-beta.hpi
```
### Results
Expected result:
Can install the optional plugin
Actual result:
```
#5 8.040 Plugin prerequisite not met:
#5 8.040 Plugin opentelemetry:0.14 depends on cloudbees-disk-usage-simple:0.10;resolution, but there is an older version defined on the top level - cloudbees-disk-usage-simple:0.10
------
executor failed running [/bin/sh -c jenkins-plugin-cli --latest false --plugins cloudbees-disk-usage-simple:0.10 opentelemetry::https://github.com/jenkinsci/opentelemetry-plugin/releases/download/0.14-beta/opentelemetry-0.14-beta.hpi]: exit code: 1
```
While If I don't add the explicit dependency for the optional plugin `cloudbees-disk-usage-simple` then it works
Somehow the `resolution` looks suspicious
Contributor guide
Assessment
This issue has not been assessed yet.