From f84a6c8f3f0459f7c4667fb736737b0aec12f8b0 Mon Sep 17 00:00:00 2001
From: david_williams <david_williams>
Date: Thu, 20 Dec 2007 03:51:57 +0000
Subject: [PATCH] initial cleanup task

---
 releng.control/cc_config.xml | 293 ++++++++++++++++++-----------------
 1 file changed, 153 insertions(+), 140 deletions(-)

diff --git a/releng.control/cc_config.xml b/releng.control/cc_config.xml
index 61d36b28c..48437513c 100644
--- a/releng.control/cc_config.xml
+++ b/releng.control/cc_config.xml
@@ -25,6 +25,10 @@
         name="time.oneHour"
         value="3600" />
 
+    <property
+        name="time.twentyFourHours"
+        value="86400" />
+
     <property
         name="time.VeryVeryLongTime"
         value="31536000" />
@@ -104,13 +108,13 @@
     <plugin
         name="cvs"
         cvsroot=":${env.WTP_CVS_PROTOCOL}:${env.WTP_CVS_USER}@${env.WTP_CVS_SERVER}:${env.WTP_CVS_ROOT}" />
-            
+
     <!-- 
-    
+        
         Note: projects should be named in the form
         ${build.distribution}-${buildBranch}-${buildType}
     -->
-  
+
 
     <project
         name="patches-R1.5-P"
@@ -140,17 +144,17 @@
         </schedule>
     </project>
 
-                 <!--     
-                    <property
-                    name="skipCleanBuild"
-                    value="yes" />
-                -->
-
-                <!--     
-                    <property
-                    name="skipUnitTests"
-                    value="yes" />
-                -->
+    <!--     
+        <property
+        name="skipCleanBuild"
+        value="yes" />
+    -->
+
+    <!--     
+        <property
+        name="skipUnitTests"
+        value="yes" />
+    -->
     <!-- 
         <project name="wtp-R1.5-M">
         
@@ -235,54 +239,54 @@
     </project>
 
     <!-- remove 'forceOnly' once we move into "release" phase -->
-<!-- 
-    <project
+    <!-- 
+        <project
         name="wtp-R2.0-R"
         forceOnly="true">
         <modificationset quietperiod="120">
-            <cvs
-                tag="R2_0_maintenance"
-                module="${env.RELENGMAPS}"
-                reallyQuiet="${env.CVS_REALLY_QUIET}" />
-            <cvs
-                tag="R1_0_maintenance"
-                module="${env.RELENGDALI}"
-                reallyQuiet="${env.CVS_REALLY_QUIET}" />
-            <cvs
-                tag="R1_0_maintenance"
-                module="${env.RELENGJSF}"
-                reallyQuiet="${env.CVS_REALLY_QUIET}" />
+        <cvs
+        tag="R2_0_maintenance"
+        module="${env.RELENGMAPS}"
+        reallyQuiet="${env.CVS_REALLY_QUIET}" />
+        <cvs
+        tag="R1_0_maintenance"
+        module="${env.RELENGDALI}"
+        reallyQuiet="${env.CVS_REALLY_QUIET}" />
+        <cvs
+        tag="R1_0_maintenance"
+        module="${env.RELENGJSF}"
+        reallyQuiet="${env.CVS_REALLY_QUIET}" />
         </modificationset>
-
+        
         <schedule interval="${time.VeryVeryLongTime}">
-            <ant>
-
-                <property
-                    name="buildType"
-                    value="R" />
-
-                <property
-                    name="buildId"
-                    value="2.0.1" />
-                <property
-                    name="buildBranch"
-                    value="R2.0" />
-                <property
-                    name="checkoutprojectname"
-                    value="${project.name}" />
-                <property
-                    name="mapVersionTag"
-                    value="R2_0_maintenance" />
-                <property
-                    name="releng.dali-mapVersionTag"
-                    value="R1_0_maintenance" />
-                <property
-                    name="releng.jsf-mapVersionTag"
-                    value="R1_0_maintenance" />
-            </ant>
+        <ant>
+        
+        <property
+        name="buildType"
+        value="R" />
+        
+        <property
+        name="buildId"
+        value="2.0.1" />
+        <property
+        name="buildBranch"
+        value="R2.0" />
+        <property
+        name="checkoutprojectname"
+        value="${project.name}" />
+        <property
+        name="mapVersionTag"
+        value="R2_0_maintenance" />
+        <property
+        name="releng.dali-mapVersionTag"
+        value="R1_0_maintenance" />
+        <property
+        name="releng.jsf-mapVersionTag"
+        value="R1_0_maintenance" />
+        </ant>
         </schedule>
-    </project>
- -->
+        </project>
+    -->
     <project name="wtp-R3.0-I">
 
         <modificationset quietperiod="120">
@@ -362,105 +366,105 @@
 
     <!-- remove 'forceOnly' once we move into this phase of building -->
     <!-- 
-    <project
+        <project
         name="wtp-R3.0-S"
         forceOnly="true">
-
+        
         <modificationset quietperiod="120">
-            <cvs
-                module="${env.RELENGMAPS}"
-                reallyQuiet="${env.CVS_REALLY_QUIET}" />
-            <cvs
-                module="${env.RELENGJSF}"
-                reallyQuiet="${env.CVS_REALLY_QUIET}" />
-            <cvs
-                module="${env.RELENGDALI}"
-                reallyQuiet="${env.CVS_REALLY_QUIET}" />
+        <cvs
+        module="${env.RELENGMAPS}"
+        reallyQuiet="${env.CVS_REALLY_QUIET}" />
+        <cvs
+        module="${env.RELENGJSF}"
+        reallyQuiet="${env.CVS_REALLY_QUIET}" />
+        <cvs
+        module="${env.RELENGDALI}"
+        reallyQuiet="${env.CVS_REALLY_QUIET}" />
         </modificationset>
-
+        
         <schedule interval="${time.oneHour}">
-            <ant>
-                <property
-                    name="buildType"
-                    value="S" />
-                <property
-                    name="buildId"
-                    value="3.0M1" />
-                <property
-                    name="buildBranch"
-                    value="R3.0" />
-                <property
-                    name="checkoutprojectname"
-                    value="${project.name}" />
-                <property
-                    name="mapVersionTag"
-                    value="HEAD" />
-                <property
-                    name="releng.dali-mapVersionTag"
-                    value="HEAD" />
-                <property
-                    name="releng.jsf-mapVersionTag"
-                    value="HEAD" />
-                <property
-                    name="build.distribution"
-                    value="wtp" />
-                <property
-                    name="build.pack-all-in-one"
-                    value="true" />
-            </ant>
+        <ant>
+        <property
+        name="buildType"
+        value="S" />
+        <property
+        name="buildId"
+        value="3.0M1" />
+        <property
+        name="buildBranch"
+        value="R3.0" />
+        <property
+        name="checkoutprojectname"
+        value="${project.name}" />
+        <property
+        name="mapVersionTag"
+        value="HEAD" />
+        <property
+        name="releng.dali-mapVersionTag"
+        value="HEAD" />
+        <property
+        name="releng.jsf-mapVersionTag"
+        value="HEAD" />
+        <property
+        name="build.distribution"
+        value="wtp" />
+        <property
+        name="build.pack-all-in-one"
+        value="true" />
+        </ant>
         </schedule>
-    </project>
- -->
+        </project>
+    -->
 
     <!-- remove 'forceOnly' once we move into this phase of building -->
     <!-- 
-    <project
+        <project
         name="wtp-R3.0-R"
         forceOnly="true">
-
+        
         <modificationset quietperiod="120">
-            <cvs
-                module="${env.RELENGMAPS}"
-                reallyQuiet="${env.CVS_REALLY_QUIET}" />
-            <cvs
-                module="${env.RELENGJSF}"
-                reallyQuiet="${env.CVS_REALLY_QUIET}" />
-            <cvs
-                module="${env.RELENGDALI}"
-                reallyQuiet="${env.CVS_REALLY_QUIET}" />
+        <cvs
+        module="${env.RELENGMAPS}"
+        reallyQuiet="${env.CVS_REALLY_QUIET}" />
+        <cvs
+        module="${env.RELENGJSF}"
+        reallyQuiet="${env.CVS_REALLY_QUIET}" />
+        <cvs
+        module="${env.RELENGDALI}"
+        reallyQuiet="${env.CVS_REALLY_QUIET}" />
         </modificationset>
-
+        
         <schedule interval="${time.oneHour}">
-            <ant>
-                <property
-                    name="buildType"
-                    value="R" />
-                <property
-                    name="buildId"
-                    value="3.0" />
-                <property
-                    name="buildBranch"
-                    value="R3.0" />
-                <property
-                    name="checkoutprojectname"
-                    value="${project.name}" />
-                <property
-                    name="mapVersionTag"
-                    value="HEAD" />
-                <property
-                    name="releng.dali-mapVersionTag"
-                    value="HEAD" />
-                <property
-                    name="releng.jsf-mapVersionTag"
-                    value="HEAD" />
-                <property
-                    name="build.distribution"
-                    value="wtp" />
-            </ant>
+        <ant>
+        <property
+        name="buildType"
+        value="R" />
+        <property
+        name="buildId"
+        value="3.0" />
+        <property
+        name="buildBranch"
+        value="R3.0" />
+        <property
+        name="checkoutprojectname"
+        value="${project.name}" />
+        <property
+        name="mapVersionTag"
+        value="HEAD" />
+        <property
+        name="releng.dali-mapVersionTag"
+        value="HEAD" />
+        <property
+        name="releng.jsf-mapVersionTag"
+        value="HEAD" />
+        <property
+        name="build.distribution"
+        value="wtp" />
+        </ant>
         </schedule>
-    </project>
-
- -->
+        </project>
+        
+    -->
 
     <project
         name="wtp-buildTools-R3.0-T"
@@ -492,5 +496,14 @@
         </schedule>
     </project>
 
+    <project name="cleanup artifacts">
+        <schedule interval="${time.twentyFourHours}">
+            <exec
+                workingdir="${env.BUILD_HOME}/releng.control"
+                command="${env.BUILD_HOME}/releng.control/cleanupArtifacts.xml" />
+        </schedule>
+    </project>
+
+
 </cruisecontrol>
 
-- 
GitLab