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

Prefer JPI plugins over HPI #957

Closed
wants to merge 1 commit into from
Closed

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Feb 25, 2020

As of Jenkins 2.176.2 detached plugins are taking precedence over specified plugins due to a fix that was introduced for docker: https://issues.jenkins-ci.org/browse/JENKINS-57528.

The fix in Jenkins ensured stricter processing of plugins. The module was installing plugins as .hpi files where Jenkins expects them to be .jpi files.

This Pull Request (PR) fixes the following issues

It is based on the implementation in #929 which was aimed at addressing #926.

Fixes #926
Fixes #929

As of Jenkins 2.176.2 detached plugins are taking precedence over
specified plugins due to a fix that was introduced for docker:
https://issues.jenkins-ci.org/browse/JENKINS-57528.

The fix in Jenkins ensured stricter processing of plugins. The module
was installing plugins as .hpi files where Jenkins expects them to be
.jpi files.
@ekohl
Copy link
Member Author

ekohl commented Feb 25, 2020

Looks like the download URLs still have hpi.

  Error: Execution of '/opt/puppetlabs/puppet/bin/curl https://updates.jenkins.io/download/plugins/git/2.3.4/git.jpi -o /tmp/git.jpi_20200225-8045-1uxqkog -fsSLg --max-redirs 5' returned 22: curl: (22) The requested URL returned error: 404 Not Found

@ekohl
Copy link
Member Author

ekohl commented Mar 12, 2020

This approach isn't going to work.

@ekohl ekohl closed this Mar 12, 2020
@ekohl ekohl deleted the prefer-jpi branch March 12, 2020 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provided plugins overwritten by detached-plugins on startup
2 participants