From 7c97868cb2da5b5ad42d764defec7b0abafd1dc7 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 26 Dec 2013 14:02:04 -0800 Subject: [PATCH] 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 --- modules/jenkins/manifests/job_builder.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/jenkins/manifests/job_builder.pp b/modules/jenkins/manifests/job_builder.pp index ecb8c43d53..d8985bac0d 100644 --- a/modules/jenkins/manifests/job_builder.pp +++ b/modules/jenkins/manifests/job_builder.pp @@ -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 => [