diff --git a/Gemfile b/Gemfile index 2acc79560..50ea448b2 100644 --- a/Gemfile +++ b/Gemfile @@ -16,6 +16,7 @@ gem 'rubocop', '< 0.42.0' gem 'json_pure', '< 2.0.2' gem 'net-http-persistent', '<= 2.9.4', :require => false if RUBY_VERSION < '2.0.0' +gem 'addressable', '<= 2.4.0', :require => false if RUBY_VERSION < '2.0.0' group :development do gem 'simplecov' diff --git a/manifests/plugin.pp b/manifests/plugin.pp index a5e25b52c..9637b2f64 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -160,10 +160,12 @@ if $digest_string { $checksum_verify = true - $checksum = $digest_string + $checksum = $digest_string + $checksum_type = $digest_type } else { $checksum_verify = false - $checksum = undef + $checksum = undef + $checksum_type = undef } archive { $plugin: @@ -171,7 +173,7 @@ path => "${::jenkins::plugin_dir}/${plugin}", checksum_verify => $checksum_verify, checksum => $checksum, - checksum_type => $digest_type, + checksum_type => $checksum_type, proxy_server => $::jenkins::proxy::url, cleanup => false, extract => false,