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

Some bundled plugins are ignored and not updated #282

Open
alindobre opened this issue Feb 4, 2021 · 5 comments
Open

Some bundled plugins are ignored and not updated #282

alindobre opened this issue Feb 4, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@alindobre
Copy link

alindobre commented Feb 4, 2021

Current Jenkins LTS version is 2.263.3. This version has a bouncycastle-api plugin bundled, version 2.16. However, latest version is 2.18. The Jenkins UI reveals this:

Screenshot 2021-02-04 at 16 43 07

However, running plugin manager 2.5.0 (latest) doesn't update it:

$ cd /tmp

$ curl -OLs https://get.jenkins.io/war-stable/2.263.3/jenkins.war

$ curl -OLs https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/2.5.0/jenkins-plugin-manager-2.5.0.jar

$ java -jar jenkins-plugin-manager-2.5.0.jar --war jenkins.war --list | grep bouncy # no ouput here

$ java -jar jenkins-plugin-manager-2.5.0.jar --war jenkins.war --available-updates
No available updates

Same happens with the command-launcher and jdk-tool plugins, both bundled in the latest LTS.

Later edit note: adding the plugin explicitly to the command line i.e. via --plugins bouncecastle-api will find the latest 2.18 version and download it. But the problem is that it doesn't detect the bundled version.

@dominykas
Copy link

@timja
Copy link
Member

timja commented Oct 12, 2021

Available updates only works on plugin files not the jenkins war itself so it won't be too useful here.

Not sure if it's intentionally excluded, most likely just not implemented.

@dominykas
Copy link

Available updates only works on plugin files not the jenkins war itself

Not sure I understand? I do not know whether it's possible to inspect the war to read the included versions and see if there's updates via the CLI (in general), but the updates definitely show up in the Jenkins Update Center, so there must be a way?

I ran into this today. To solve it I added the deps that are normally bundled into the war into my plugins.txt - they get installed properly that way, and I assume any pending updates would also show up?

@timja
Copy link
Member

timja commented Oct 12, 2021

I mean this CLI tool does not inspect your installed versions in any way, it just processes a plugins.txt file.

I ran into this today. To solve it I added the deps that are normally bundled into the war into my plugins.txt - they get installed properly that way, and I assume any pending updates would also show up?

Yes that is the normal workflow

@dominykas
Copy link

Yes that is the normal workflow

Glad to know I'm not crazy 😂

This workflow does have the downside for the fully automated situations, where nobody ever looks into the Update Center - I was not even aware "detached plugins" are even a thing and I was very confused to not even see these via the --list, etc.

Thanks for filling in the missing info 👍 I probably do not have the capacity to learn how to implement this, but I might look into updating the README or smth.

@oleg-nenashev oleg-nenashev added the bug Something isn't working label Oct 18, 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

4 participants