Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update plugin if it already installed #11

Closed
php-coder opened this issue Jul 5, 2013 · 2 comments
Closed

Update plugin if it already installed #11

php-coder opened this issue Jul 5, 2013 · 2 comments
Labels
enhancement New feature or request

Comments

@php-coder
Copy link
Contributor

Jenkins 1.509.2 provided bundled javadoc plugin with version 1.0

When I want to update it to the latest version (or manually specify it):

class { 'jenkins':                                                                                  
  lts => 1
  repo => 1
  plugin_hash => {                                                                                  
    'javadoc' => { version => '1.1' }
  }
}

Plugin wasn't updated because code only checks if plugin presents or not. It would be better to also check installed version and update plugin if newer version requested.

@matthewbarr
Copy link
Contributor

Yes, this is a limitation of the current way of doing plugins. We don't have any way to tell what version is installed.

I'm working on a full puppet package provider for Jenkins, but... I don't have much time right now to get it working.

I'm not sure the remote CLI will allow us to specify a version of a plugin, but I'm hopeful. There's a chance that some of this is possible via groovy scripts instead.

@rtyler rtyler added this to the 1.1.0 Duckworth milestone Feb 24, 2014
matthewbarr added a commit that referenced this issue Feb 26, 2014
remove firewall from fixtures, fail if configure_firewall unset but firewall present
rtyler pushed a commit that referenced this issue Apr 24, 2014
@rtyler rtyler modified the milestones: 1.2.0: Nestor, 1.1.0 Duckworth Apr 26, 2014
@rtyler rtyler modified the milestone: 1.2.0: Nestor Sep 25, 2014
@jhoblitt
Copy link
Member

jhoblitt commented Apr 3, 2016

This has been complimented for some time (several years it looks like).

@jhoblitt jhoblitt closed this as completed Apr 3, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants