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

Fix issue with detached plugins taking priority. #929

Closed
wants to merge 3 commits into from

Conversation

wiccan2
Copy link

@wiccan2 wiccan2 commented Aug 29, 2019

As of Jenkins 2.176.2 detached plugins were 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 problem was highlighted in #926.

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

As of Jenkins 2.176.2 detached plugins were 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 problem was highlighted in voxpupuli#926.
@tsde
Copy link

tsde commented Sep 4, 2019

@wiccan2 Thanks for the PR. We're also facing the same issue. Hope this change will be merged soon. Any thought about making this change backward compatible ? We're using this module for dozens of customers and they don't necessarily follow jenkins upgrades (core or plugins) thoroughly. This change could then lead to deployment of jpi versions of plugins and I don't really know if this could break stuff.

@intrigeri
Copy link
Contributor

FWIW, we've faced exactly this issue at Tails and this PR fixed it for us. Thanks!

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If only jpi plugins are supported, then you should properly clean up all hpi support.

@@ -99,7 +99,7 @@
}

$plugin_ext = regsubst($download_url, '^.*\.(hpi|jpi)$', '\1')
$plugin = "${name}.${plugin_ext}"
$plugin = "${name}.jpi"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to download the jpi by default on line 97?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the update URL still has hpi and this is indeed the correct thing to do.

}
$inverse_plugin = "${name}.${inverse_plugin_ext}"

file {[
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the code to make sure it's absent still relevant?

witjoh added a commit to witjoh/puppet-jenkins that referenced this pull request Oct 17, 2019
@vox-pupuli-tasks
Copy link

Dear @wiccan2, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

1 similar comment
@vox-pupuli-tasks
Copy link

Dear @wiccan2, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@vox-pupuli-tasks
Copy link

Dear @wiccan2, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@vox-pupuli-tasks
Copy link

Dear @wiccan2, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@ekohl
Copy link
Member

ekohl commented Feb 25, 2020

I've submitted #957 as an alternative implementation which I believe is simpler.

@ekohl
Copy link
Member

ekohl commented Sep 3, 2020

This now needs a rebase. I've made some changes (5fb0dee and db25b59) that at least allow you to work around this.

@ekohl
Copy link
Member

ekohl commented Sep 16, 2022

Closing for inactivity.

@ekohl ekohl closed this Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants