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 637865ce88
commit f7ddd8cf23

View File

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