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:
parent
868275fbba
commit
7c97868cb2
@ -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 => [
|
||||
|
Loading…
Reference in New Issue
Block a user