Don't automatically restart jenkins on plugin changes

This way we can manually gracefully restart jenkins.  Since this
won't immediately install plugins, change the download test to
check whether an hpi or jpi file exists.

Change-Id: I41667684ad8a57f5ae554f866dcc38d5ecca6ba0
This commit is contained in:
James E. Blair 2013-08-03 02:28:41 +00:00
parent 438a5c603c
commit 3f4a70d1a3

View File

@ -49,7 +49,9 @@ define jenkins::plugin(
require => File[$plugin_dir], require => File[$plugin_dir],
path => ['/usr/bin', '/usr/sbin',], path => ['/usr/bin', '/usr/sbin',],
user => 'jenkins', user => 'jenkins',
unless => "test -d ${plugin_dir}/${name}", unless => "test -f ${plugin_dir}/${name}.?pi",
notify => Service['jenkins'], # OpenStack modification: don't auto-restart jenkins so we can control
# outage timing better.
# notify => Service['jenkins'],
} }
} }