Hi Gavin,

this patch changes the current configuration in two ways:
1. define a list of paths that, when only those are changed, don't
trigger a build.
2. trigger builds not only for trunk, but also for our release
branches (1.6.x etc)

Lieven

[[[
Bring the asf buildbot master up to date with the old master's configuration for
the Subversion project.

* infrastructure/buildbot/aegis/buildmaster/master1/projects/subversion.conf
  (exludes, isImportant): new definitions to define paths not interesting enough
   to trigger a build.
  (c['schedulers']): add the release branches to the list of branches the master
   keeps an eye on.
]]]
Index: subversion.conf
===================================================================
--- subversion.conf     (revision 775266)
+++ subversion.conf     (working copy)
@@ -5,10 +5,33 @@
 from buildbot.steps.master import MasterShellCommand
 from buildbot.steps.transfer import FileUpload
 
+
+# List the paths that are not interesting enough to trigger a new build.
+excludes = ["COMMITTERS", "STATUS", "CHANGES", "README", "INSTALL", "COPYING", 
"HACKING", "TRANSLATING",
+            "BUGS", "www", "notes", "packages", "subversion/LICENSE", 
"subversion/po", "doc", "contrib",
+            "tools", "dist.sh"]
+
+def isImportant(change):
+    if not excludes:
+        return True
+
+    for file in change.files:
+        triggerBuild = False
+        for pattern in excludes:
+            match = re.match(pattern, file)
+            if not match:
+                triggerBuild = True
+                break
+        if triggerBuild:
+            return True
+
 c['schedulers'].append(AnyBranchScheduler(name="on-subversion-commit",
-                         branches=["subversion/trunk"],
+                         branches=["subversion/trunk",
+                                   "subversion/branches/1.3.x", 
"subversion/branches/1.4.x",
+                                   "subversion/branches/1.5.x", 
"subversion/branches/1.6.x"],
                          treeStableTimer=2*60,
-                         builderNames=["subversion-trunk" , 
"slik-w2k3-x64-local" , "slik-w2k3-x64-ra"]))
+                         builderNames=["subversion-trunk" , 
"slik-w2k3-x64-local" , "slik-w2k3-x64-ra"],
+                         fileIsImportant=isImportant))
 
 #builders
 

Reply via email to