[Lsb-messages] /var/www/bzr/lsb/devel/buildbot-config r251: Switch to the new email-based change source.

Jeff Licquia licquia at linuxfoundation.org
Fri May 4 21:48:15 UTC 2012


------------------------------------------------------------
revno: 251
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: buildbot-config
timestamp: Fri 2012-05-04 17:48:15 -0400
message:
  Switch to the new email-based change source.
modified:
  lsb_master.cfg
-------------- next part --------------
=== modified file 'lsb_master.cfg'
--- a/lsb_master.cfg	2012-05-04 18:57:33 +0000
+++ b/lsb_master.cfg	2012-05-04 21:48:15 +0000
@@ -19,8 +19,6 @@
 
 import lfbuildbot
 
-from bzr_buildbot import BzrPoller
-
 # This buildbot config file defines the LSB builds that are needed.
 # 
 # Each project needs one build per architecture; this includes the
@@ -262,16 +260,27 @@
 # about source code changes. Any class which implements IChangeSource can be
 # put here: there are several in buildbot/changes/*.py to choose from.
 
-# For the LSB builder, we've moved to a push model, so we only need
-# a push receiver.  We store the user/password data outside this version
-# control repository, as with slave passwords above.
-
-changesrc_password_file = open("/opt/buildbot/changesrc_pwds")
-(changesrc_user, changesrc_pw) = \
-    changesrc_password_file.readline().strip().split(":", 1)
-c['change_source'] = pb.PBChangeSource(port=9990, user=changesrc_user,
-                                       passwd=changesrc_pw)
-changesrc_password_file.close()
+# For the LSB builder, we let bzr push change notifications via email.
+# Thus, the only change source we need is the email parser, as well as a
+# branch map.
+
+branch_map = {}
+lsb_change_sources = lsb_pkg_subdir_projects.keys() + \
+    [x[1] for x in lsb_packaging_projects if x[1] is not None] + ["appbat"]
+added = []
+for project in lsb_change_sources:
+    if project in added:
+        continue
+    devel_path = "lsb/devel/" + project
+    branch_map["/srv/www/bzr/" + devel_path] = devel_path
+    for branch in branch_watch_list:
+        if project in branch_watch_list[branch]:
+            branch_path = "lsb/%s/%s" % (branch, project)
+            branch_map["/srv/www/bzr/" + branch_path] = branch_path
+    added.append(project)
+
+c['change_source'] = lfbuildbot.BzrLsbMaildirSource(
+    "/opt/buildbot/Maildir", branchMap=branch_map)
 
 
 ####### SCHEDULERS



More information about the lsb-messages mailing list