Add weekly builder job to flush-cache and verify JJB 96/16996/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 23 Mar 2015 14:42:07 +0000 (10:42 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 23 Mar 2015 14:48:34 +0000 (10:48 -0400)
Change-Id: I0cf7230028ab337f9e902a4784a07dc9ec0f3876
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/releng-jobs.yaml

index 0a869332bd6245a0b2dd7186aa3ab275a731ac90..9d8a7220a5e507712eb8f97c91a13fbbf786c783 100644 (file)
@@ -4,6 +4,7 @@
         - 'builder-verify-jjb'
         - 'builder-verify-python'
         - 'builder-merge'
+        - 'builder-weekly'
         - 'builder-check-poms'
 
     project: 'releng/builder'
         - email-notification:
             email-prefix: '[releng]'
 
+- job-template:
+    name: 'builder-weekly'
+
+    # builder-daily job to run JJB update weekly
+    #
+    # This job's purpose is to update all the JJB on a weekly (Sunday)
+    # basis with --flush-cache enabled to ensure jobs are okay
+
+    project-type: freestyle
+
+    logrotate:
+        daysToKeep: 30
+        numToKeep: 40
+        artifactDaysToKeep: -1
+        artifactNumToKeep: 5
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+
+    scm:
+        - git-scm:
+            credentials-id: '{ssh-credentials}'
+            branch: 'default'
+
+    wrappers:
+        - ssh-agent-credentials:
+            user: '{ssh-credentials}'
+
+    triggers:
+        - timed: 'H H * * 0'
+
+    builders:
+        - shell: |
+            source /opt/virtualenv/jenkins-job-builder/bin/activate
+            jenkins-jobs --flush-cache update jjb/
+
+    publishers:
+        - email-notification:
+            email-prefix: '[releng]'
+
 - job-template:
     name: builder-check-poms