Redirect job output to file and archive them 09/109/3
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 11 Jan 2016 20:29:53 +0000 (15:29 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 25 Jan 2016 18:25:31 +0000 (18:25 +0000)
Also limit max artifacts to keep to 5.

Change-Id: If7603844d12e43f208817dc77b015ddc63786d99
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/ci-management-jobs.yaml

index 209152f..795abce 100644 (file)
@@ -18,7 +18,7 @@
         daysToKeep: 30
         numToKeep: 10
         artifactDaysToKeep: -1
-        artifactNumToKeep: -1
+        artifactNumToKeep: 5
 
     parameters:
         - project-parameter:
 
     builders:
         - shell: |
-            jenkins-jobs test jjb/
+            jenkins-jobs test -o job_output jjb/
         - ci-management-check-unicode
 
+    publishers:
+        - archive-artifacts:
+            artifacts: 'job_output/*'
+
 - job-template:
     name: 'ci-management-merge'