-
Notifications
You must be signed in to change notification settings - Fork 567
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 plugins not updating #118
Comments
Any potential dependency change? |
No, not as far as I can see. I'll check next time I'm with this client (next week now). Thanks, R. |
I'm experiencing this same issue. |
This happens for core plugins. See https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial#Plugintutorial-Deployingacustombuildofacoreplugin |
This is useful when you want jenkins to download plugins from an enterprise repository. As for the core plugin support this should fix voxpupuli#118
This kind of makes me wonder if we should add a .pinned to each plugin managed by puppet. That would resolve this (I think) and also ensure things defined by puppet are as puppet says. |
Fixed this issue by changing: --- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -78,7 +78,7 @@ define jenkins::plugin(
file { "${plugin_dir}/${plugin}" :
require => Exec["download-${name}"],
- owner => 'jenkins',
+ owner => 'root',
mode => '0644',
notify => Service['jenkins'],
} |
tobias-m: Thank you, that worked! But I'm struggling to see why ...
As I read the code, the Now, why would it have an impact who ( |
This is overriding what jenkins is trying to do with the hpi file. By default, jenkins wants to own and control all of the core modules. Changing the owner to root prevents the jenkins user from managing the file the way it wants to. I imagine there's an empty catch block in the code that's keeping this from blowing up completely. I think the better solution is to add a .pinned file for each core module that jenkins manages. See #131. |
I believe this issue should be resolved by #389 so I'm going to close this issue. Please reopen it if the problem is reproducible with the current master. |
Hi,
I'm using the 1.0.1 release of this module with PE 3.1.3 on RHEL6.
I'm using the plugin code like this:
Where "jenkins_plugins" is a hash structure containing something like:
I'm finding that some plugins do not update - it seems to be those that are distributed as plugin_name.hpi, eg. credentials.
When puppet runs, it says it installed the plugin:
However, Update Centre still shows the old version and the same code runs again next time puppet runs.
Any ideas?
R.
The text was updated successfully, but these errors were encountered: