Use JJB --delete-old option to keep job list clean

Use JJB's update --delete-old option to keep the list of jobs in Jenkins
as small as possible. This will delete any jobs not known in the JJB
config files.

Change-Id: I348e33f69f74f8ae8d4a87db85e1336d2cf44368
This commit is contained in:
Clark Boylan 2013-12-26 14:02:04 -08:00
parent 868275fbba
commit 7c97868cb2

View File

@ -39,7 +39,7 @@ class jenkins::job_builder (
}
exec { 'jenkins_jobs_update':
command => 'jenkins-jobs update /etc/jenkins_jobs/config',
command => 'jenkins-jobs update --delete-old /etc/jenkins_jobs/config',
path => '/bin:/usr/bin:/usr/local/bin',
refreshonly => true,
require => [