This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Commit 6c7793b 1 parent 0be990b commit 6c7793b Copy full SHA for 6c7793b
File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 239
239
# @param default_plugins_host
240
240
# Provide a way to override plugins host for all plugins
241
241
#
242
- # https://issues.jenkins-ci.org/browse/INFRA-1060
242
+ # https://issues.jenkins-ci.org/browse/INFRA-1060
243
243
#
244
244
# @example Manage version of ``credentials`` plugin (hiera)
245
245
# jenkins::default_plugins: []
351
351
validate_string($user )
352
352
validate_bool($manage_group )
353
353
validate_string($group )
354
+ validate_string($default_plugins_host )
354
355
validate_bool($purge_plugins )
355
356
if $purge_plugins and ! $manage_datadirs {
356
357
warning (' jenkins::purge_plugins has no effect unless jenkins::manage_datadirs is true' )
Original file line number Diff line number Diff line change @@ -145,6 +145,23 @@ class { jenkins:
145
145
end
146
146
end
147
147
148
+ describe 'with custom default_plugins_host' do
149
+ let ( :pre_condition ) do
150
+ <<-EOS
151
+ class { jenkins:
152
+ default_plugins_host => "https://update.jenkins.custom",
153
+ }
154
+ EOS
155
+ end
156
+
157
+ it do
158
+ should contain_archive ( 'myplug.hpi' ) . with (
159
+ :source => 'https://update.jenkins.custom/latest/myplug.hpi' ,
160
+ )
161
+ end
162
+ end
163
+
164
+
148
165
describe 'with a custom update center' do
149
166
shared_examples 'execute the right fetch command' do
150
167
it 'should retrieve the plugin' do
You can’t perform that action at this time.
0 commit comments