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

Managing Plugins page - File copied to JENKINS_HOME/plugins should be .jpi not .hpi #4778

Closed
KalleOlaviNiemitalo opened this issue Dec 21, 2021 · 1 comment · Fixed by #4822
Labels
bug good first issue Good issue for a first time contributor

Comments

@KalleOlaviNiemitalo
Copy link
Contributor

Problem with the Managing Plugins page, source file

https://www.jenkins.io/doc/book/managing/plugins/#on-the-controller says:

Copy the downloaded .hpi file into the JENKINS_HOME/plugins directory on the Jenkins controller

However, when the update center places files in that directory, it uses the .jpi extension, not .hpi. So if the Jenkins administrator has installed e.g. the Azure AD plugin via the update center and downgrades it by copying the lower version of azure-ad.hpi to that directory, then the directory will have both azure-ad.hpi (lower version, copied by administrator) and azure-ad.jpi (higher version, installed via update center) in it. Jenkins then unpacks the plugin files from azure-ad.hpi, but the update center reads the version information from azure-ad.jpi and does not realize that the plugin has been downgraded.

Possible Solution

Recommend that the Jenkins administrator renames plugin files to end with .jpi when copying them to JENKINS_HOME/plugins.

@321ravi
Copy link
Contributor

321ravi commented Jan 15, 2022

@MarkEWaite what i need to change in this all plugins .hpi to .jpi or i have to explain it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue Good issue for a first time contributor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants