Add configurable timeout for jjb update
It was hardcoded to 600, add the ability to configure depending on needs. Change-Id: Ia23f32615412c88a292f9c59ec2c5ed25e46646c
This commit is contained in:
parent
af17abc96e
commit
873f8163c9
@ -7,6 +7,7 @@ class jenkins::job_builder (
|
||||
$git_revision = 'master',
|
||||
$git_url = 'https://git.openstack.org/openstack-infra/jenkins-job-builder',
|
||||
$config_dir = '',
|
||||
$jenkins_jobs_update_timeout = '600',
|
||||
) {
|
||||
|
||||
# A lot of things need yaml, be conservative requiring this package to avoid
|
||||
@ -56,7 +57,7 @@ class jenkins::job_builder (
|
||||
|
||||
exec { 'jenkins_jobs_update':
|
||||
command => 'jenkins-jobs update --delete-old /etc/jenkins_jobs/config',
|
||||
timeout => '600',
|
||||
timeout => $jenkins_jobs_update_timeout,
|
||||
path => '/bin:/usr/bin:/usr/local/bin',
|
||||
refreshonly => true,
|
||||
require => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user