Add job logs-collector
authorOlev Kartau <olev.kartau@intel.com>
Thu, 26 Feb 2015 15:17:36 +0000 (17:17 +0200)
committerOlev Kartau <olev.kartau@intel.com>
Thu, 26 Feb 2015 15:21:10 +0000 (17:21 +0200)
This job copies and compresses jenkins job logs
to the location where these survive deletion by Jenkins

Change-Id: I78719f542500610dafe2b4f023a0447bfc78e17b

jobs/logs-collector/config.xml [new file with mode: 0644]
packaging/jenkins-jobs.spec

diff --git a/jobs/logs-collector/config.xml b/jobs/logs-collector/config.xml
new file mode 100644 (file)
index 0000000..201f098
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+  <actions/>
+  <description>Collect logfiles from jobs to long-term storing location</description>
+  <logRotator class="hudson.tasks.LogRotator">
+    <daysToKeep>60</daysToKeep>
+    <numToKeep>60</numToKeep>
+    <artifactDaysToKeep>-1</artifactDaysToKeep>
+    <artifactNumToKeep>-1</artifactNumToKeep>
+  </logRotator>
+  <keepDependencies>false</keepDependencies>
+  <properties>
+    <hudson.plugins.buildblocker.BuildBlockerProperty plugin="build-blocker-plugin@1.4.1">
+      <useBuildBlocker>false</useBuildBlocker>
+    </hudson.plugins.buildblocker.BuildBlockerProperty>
+    <hudson.queueSorter.PrioritySorterJobProperty plugin="PrioritySorter@2.8">
+      <priority>80</priority>
+    </hudson.queueSorter.PrioritySorterJobProperty>
+  </properties>
+  <scm class="hudson.scm.NullSCM"/>
+  <assignedNode>master</assignedNode>
+  <canRoam>false</canRoam>
+  <disabled>false</disabled>
+  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+  <triggers>
+    <hudson.triggers.TimerTrigger>
+      <spec>12 4 * * *</spec>
+    </hudson.triggers.TimerTrigger>
+  </triggers>
+  <concurrentBuild>false</concurrentBuild>
+  <builders>
+    <hudson.tasks.Shell>
+      <command>${JENKINS_HOME}/jenkins-scripts/logs-collector.sh</command>
+    </hudson.tasks.Shell>
+  </builders>
+  <publishers/>
+</project>
index 2f6e6d1..315280d 100644 (file)
@@ -104,6 +104,8 @@ fi
 %config %{destdir}/sync-obs/config.xml
 %dir %{destdir}/purge-old-directories/
 %config %{destdir}/purge-old-directories/config.xml
+%dir %{destdir}/logs-collector/
+%config %{destdir}/logs-collector/config.xml
 
 %files common
 %defattr(-,jenkins,jenkins)