Updated settings for keeping old builds
authorEd Bartosh <eduard.bartosh@intel.com>
Thu, 12 Sep 2013 15:10:16 +0000 (18:10 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Thu, 12 Sep 2013 15:19:44 +0000 (18:19 +0300)
Without this settings Jenkins accumulates all old builds and for some
jobs it's really a lot. This makes Jenkins starting very slow as it
scans builds/ directories for every job on the start.

Change-Id: Ia9ca5c5171e9006a6506d5ecb7f50cdf9d8f17e6
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
13 files changed:
jobs/delete-tag/config.xml
jobs/image-creator/config.xml
jobs/load-repo-conf/config.xml
jobs/mail_sender/config.xml
jobs/obs-event-dispatcher/config.xml
jobs/policy-check/config.xml
jobs/post-image-creation/config.xml
jobs/pre-release-cleanup/config.xml
jobs/pre-release-create/config.xml
jobs/pre-release-gerrit/config.xml
jobs/requests/config.xml
jobs/submit-obs/config.xml
jobs/update-local-git/config.xml

index 9b7a353..2a3423e 100644 (file)
@@ -3,8 +3,8 @@
   <actions/>
   <description>This job will delete all tags attach to commit, which is abandoned or overwritten in gerrit.</description>
   <logRotator class="hudson.tasks.LogRotator">
-    <daysToKeep>15</daysToKeep>
-    <numToKeep>-1</numToKeep>
+    <daysToKeep>7</daysToKeep>
+    <numToKeep>500</numToKeep>
     <artifactDaysToKeep>-1</artifactDaysToKeep>
     <artifactNumToKeep>-1</artifactNumToKeep>
   </logRotator>
index 15208b6..3df3550 100644 (file)
@@ -2,10 +2,15 @@
 <project>
   <actions/>
   <description>Image creation jobs for all kinds of images</description>
+  <logRotator class="hudson.tasks.LogRotator">
+    <daysToKeep>7</daysToKeep>
+    <numToKeep>1000</numToKeep>
+    <artifactDaysToKeep>-1</artifactDaysToKeep>
+    <artifactNumToKeep>-1</artifactNumToKeep>
+  </logRotator>
   <keepDependencies>false</keepDependencies>
   <properties>
-    <hudson.queueSorter.PrioritySorterJobProperty plugin="PrioritySorter@1.3">
-      <priority>100</priority>
+    <hudson.queueSorter.PrioritySorterJobProperty plugin="PrioritySorter@1.3">      <priority>100</priority>
     </hudson.queueSorter.PrioritySorterJobProperty>
     <hudson.model.ParametersDefinitionProperty>
       <parameterDefinitions>
index cf30b80..0ffbc64 100644 (file)
@@ -3,8 +3,8 @@
   <actions/>
   <description>This job will load repo conf to backend redis server when repo-conf project in gerrit updated.</description>
   <logRotator class="hudson.tasks.LogRotator">
-    <daysToKeep>15</daysToKeep>
-    <numToKeep>-1</numToKeep>
+    <daysToKeep>7</daysToKeep>
+    <numToKeep>50</numToKeep>
     <artifactDaysToKeep>-1</artifactDaysToKeep>
     <artifactNumToKeep>-1</artifactNumToKeep>
   </logRotator>
index 825d63c..72de06e 100644 (file)
@@ -4,7 +4,7 @@
   <description>This job will be triggered by others to send out email.</description>
   <logRotator class="hudson.tasks.LogRotator">
     <daysToKeep>7</daysToKeep>
-    <numToKeep>-1</numToKeep>
+    <numToKeep>500</numToKeep>
     <artifactDaysToKeep>-1</artifactDaysToKeep>
     <artifactNumToKeep>-1</artifactNumToKeep>
   </logRotator>
index 47fd031..2cb65d3 100644 (file)
@@ -2,6 +2,12 @@
 <project>
   <actions/>
   <description></description>
+  <logRotator class="hudson.tasks.LogRotator">
+    <daysToKeep>7</daysToKeep>
+    <numToKeep>1000</numToKeep>
+    <artifactDaysToKeep>-1</artifactDaysToKeep>
+    <artifactNumToKeep>-1</artifactNumToKeep>
+  </logRotator>
   <keepDependencies>false</keepDependencies>
   <properties>
     <hudson.queueSorter.PrioritySorterJobProperty plugin="PrioritySorter@1.3">
index 5475732..f961e3c 100644 (file)
@@ -3,8 +3,8 @@
   <actions/>
   <description>This job will do policy check, like rpmlint check and build check, when a change is created in gerrit.</description>
   <logRotator class="hudson.tasks.LogRotator">
-    <daysToKeep>15</daysToKeep>
-    <numToKeep>-1</numToKeep>
+    <daysToKeep>7</daysToKeep>
+    <numToKeep>500</numToKeep>
     <artifactDaysToKeep>-1</artifactDaysToKeep>
     <artifactNumToKeep>-1</artifactNumToKeep>
   </logRotator>
index 27968e8..3e7267d 100644 (file)
@@ -2,6 +2,12 @@
 <project>
   <actions/>
   <description>This job handles the image infomation updates and image manifest creation etc.</description>
+  <logRotator class="hudson.tasks.LogRotator">
+    <daysToKeep>7</daysToKeep>
+    <numToKeep>500</numToKeep>
+    <artifactDaysToKeep>-1</artifactDaysToKeep>
+    <artifactNumToKeep>-1</artifactNumToKeep>
+  </logRotator>
   <keepDependencies>false</keepDependencies>
   <properties>
     <hudson.queueSorter.PrioritySorterJobProperty plugin="PrioritySorter@1.3">
index 730811c..7a74963 100644 (file)
@@ -3,7 +3,7 @@
   <actions/>
   <description>    </description>
   <logRotator class="hudson.tasks.LogRotator">
-    <daysToKeep>-1</daysToKeep>
+    <daysToKeep>7</daysToKeep>
     <numToKeep>1000</numToKeep>
     <artifactDaysToKeep>-1</artifactDaysToKeep>
     <artifactNumToKeep>-1</artifactNumToKeep>
index ffe05c9..16cf97e 100644 (file)
@@ -3,7 +3,7 @@
   <actions/>
   <description>Prerelase jobs to create repositories and trigger image creataion jobs</description>
   <logRotator class="hudson.tasks.LogRotator">
-    <daysToKeep>-1</daysToKeep>
+    <daysToKeep>7</daysToKeep>
     <numToKeep>1000</numToKeep>
     <artifactDaysToKeep>-1</artifactDaysToKeep>
     <artifactNumToKeep>-1</artifactNumToKeep>
index ad3975b..4ef91d3 100644 (file)
@@ -3,7 +3,7 @@
   <actions/>
   <description> </description>
   <logRotator class="hudson.tasks.LogRotator">
-    <daysToKeep>-1</daysToKeep>
+    <daysToKeep>7</daysToKeep>
     <numToKeep>1000</numToKeep>
     <artifactDaysToKeep>-1</artifactDaysToKeep>
     <artifactNumToKeep>-1</artifactNumToKeep>
index dbbef19..ae1946f 100644 (file)
@@ -2,6 +2,12 @@
 <project>
   <actions/>
   <description> </description>
+  <logRotator class="hudson.tasks.LogRotator">
+    <daysToKeep>7</daysToKeep>
+    <numToKeep>1000</numToKeep>
+    <artifactDaysToKeep>-1</artifactDaysToKeep>
+    <artifactNumToKeep>-1</artifactNumToKeep>
+  </logRotator>
   <keepDependencies>false</keepDependencies>
   <properties>
     <hudson.queueSorter.PrioritySorterJobProperty plugin="PrioritySorter@1.3">
index c4347e3..1463ba8 100644 (file)
@@ -3,10 +3,10 @@
   <actions/>
   <description>This script will submit a merged change to corresponding OBS staging project. If necessary, create SR to request merge to target OBS project.</description>
   <logRotator class="hudson.tasks.LogRotator">
-    <daysToKeep>30</daysToKeep>
-    <numToKeep>-1</numToKeep>
-    <artifactDaysToKeep>-1</artifactDaysToKeep>
-    <artifactNumToKeep>-1</artifactNumToKeep>
+    <daysToKeep>7</daysToKeep>
+    <numToKeep>1000</numToKeep>
+    <artifactDaysToKeep>7</artifactDaysToKeep>
+    <artifactNumToKeep>1000</artifactNumToKeep>
   </logRotator>
   <keepDependencies>false</keepDependencies>
   <properties>
@@ -112,4 +112,4 @@ if(matcher?.matches()) {
       </info>
     </EnvInjectBuildWrapper>
   </buildWrappers>
-</project>
+</project>
\ No newline at end of file
index 5e25bec..1194b2c 100644 (file)
@@ -3,10 +3,10 @@
   <actions/>
   <description>This job will pull latest change to jenkins local when remote ref updated.</description>
   <logRotator class="hudson.tasks.LogRotator">
-    <daysToKeep>2</daysToKeep>
-    <numToKeep>-1</numToKeep>
-    <artifactDaysToKeep>-1</artifactDaysToKeep>
-    <artifactNumToKeep>-1</artifactNumToKeep>
+    <daysToKeep>7</daysToKeep>
+    <numToKeep>500</numToKeep>
+    <artifactDaysToKeep>7</artifactDaysToKeep>
+    <artifactNumToKeep>500</artifactNumToKeep>
   </logRotator>
   <keepDependencies>false</keepDependencies>
   <properties>