Skip to content

Commit

Permalink
Merge pull request #188 from Jimdo/fix-installation-of-core-plugins
Browse files Browse the repository at this point in the history
Fix installation of core plugins
  • Loading branch information
R. Tyler Croy committed Sep 26, 2014
2 parents 7493b9d + f8ddab1 commit e5ab7b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/plugin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
}

exec { "download-${name}" :
command => "rm -rf ${name} ${name}.* && wget --no-check-certificate ${base_url}${plugin}",
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'],
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/jenkins_plugin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

describe 'without version' do
it { should contain_exec('download-myplug').with(
:command => 'rm -rf myplug myplug.* && wget --no-check-certificate http://updates.jenkins-ci.org/latest/myplug.hpi',
:command => 'rm -rf myplug myplug.hpi myplug.jpi && wget --no-check-certificate http://updates.jenkins-ci.org/latest/myplug.hpi',
:environment => nil
)}
it { should contain_file('/var/lib/jenkins/plugins/myplug.hpi')}
Expand Down

0 comments on commit e5ab7b7

Please # to comment.