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

Jenkins::Plugin should respect installed plugins, support ensure => latest #309

Open
hesco opened this issue May 22, 2015 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@hesco
Copy link

hesco commented May 22, 2015

We need a mechanism for issuing a query to: "${plugins_host}/download/plugins/${name}/" to determine whether a later version of a plugin might be available, to support installing the latest version rather than a pinned version.

As my catalog gets applied I'm seeing this:

rm -rf analysis-collector analysis-collector.hpi analysis-collector.jpi 
&& wget --no-check-certificate http://updates.jenkins-ci.org/latest/analysis-collector.hpi

This Exec[] resource needs an if, onlyif or unless condition to test for the presence of the intended version of a plugin.

    exec { "download-${name}" :
      command => "rm -rf ${name} ${name}.hpi ${name}.jpi && wget --no-check-certificate ${base_url}${plugin}",
      cwd     => $plugin_dir,
      require => [File[$plugin_dir], Package['wget']],
      path    => ['/usr/bin', '/usr/sbin', '/bin'],
    }

I should not have to wait while every plugin on an installation is purged and re-installed on every puppet agent run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants