Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin installer always wants to install the latest version for plugin dependencies #219

Closed
ChrisRamsayITV opened this issue Jan 15, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ChrisRamsayITV
Copy link

ChrisRamsayITV commented Jan 15, 2021

Describe the bug
The plugin installer always wants to install the latest plugin dependency version rather than the version I have specified

Version of Helm and Kubernetes:

Helm Version: 3.3.4
Kubernetes Version: v1.18.9-eks-d1db3c
Kubectl version: v1.17.14

Which version of the chart: 3.1.0

What happened:
When installing plugins via controller.installPlugins, eg:

  installPlugins:
    - slack:2.0.1
    - ace-editor:1.1
    - active-directory:2.13
    - ansicolor:0.6.2
    - ant:1.11
   ...

the init container always seems to try to fetch the latest plugin version:

disable Setup Wizard
remove all plugins from shared volume
download plugins
Plugin slack:2.0.1 depends on junit:1.48, but there is an older version defined on the top level - junit:1.44

v2.0.1 of the slack plugin defines junit 1.3 as minimum: https://github.com/jenkinsci/slack-plugin/blob/slack-2.0.1/pom.xml#L50-L54

junit:1.48 is the latest version

What you expected to happen:
Install the plugin versions I defined

How to reproduce it (as minimally and precisely as possible):
(without specifying my entire plugin list)
Specify junit:144 and slack:2.01 in controller.installPlugins

If I resolve that particular plugin version to the latest, it does it with other plugins.

Anything else we need to know:
This works correctly when specifying the jenkins image version of 2.235.5-lts - it seems to have broken in later versions

@ChrisRamsayITV ChrisRamsayITV added the bug Something isn't working label Jan 15, 2021
@ChrisRamsayITV ChrisRamsayITV changed the title Plugin installer always wants to install the latest plugin Plugin installer always wants to install the latest version for plugin dependencies Jan 15, 2021
@torstenwalter
Copy link
Member

If it's an issue with the plugin installer then it would make sense to address the issue there.

@ChrisRamsayITV
Copy link
Author

Thanks - just seen the issue mentioned here: jenkinsci/plugin-installation-manager-tool#250

lemeurherve pushed a commit to lemeurherve/jenkinsci-helm-charts that referenced this issue Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants