Add a workdir for each GitPoller source repository
authorDan Scott <dan@coffeecode.net>
Sun, 15 May 2011 20:23:32 +0000 (16:23 -0400)
committerDan Scott <dan@coffeecode.net>
Sun, 15 May 2011 20:23:32 +0000 (16:23 -0400)
Not 100% sure, but with two GitPollers using the same working
directory, I suspect that there was a conflict between the
underlying repos as to which commit was the newest. Give
each of them an explicit working directory in the attempt
to avoid this.

Signed-off-by: Dan Scott <dan@coffeecode.net>

examples/buildbot.cfg

index 1af1454..571b70c 100644 (file)
@@ -46,13 +46,15 @@ osrf_git = 'git://git.evergreen-ils.org/OpenSRF.git'
 
 from buildbot.changes import gitpoller
 c['change_source'] = (
-       gitpoller.GitPoller(
-               project='OpenSRF',
-               repourl=osrf_git
+    gitpoller.GitPoller(
+        project='OpenSRF',
+        repourl=osrf_git,
+        workdir='/tmp/buildbot_osrf_work'
     ),
-       gitpoller.GitPoller(
-               project='Evergreen',
-        repourl=eg_git
+    gitpoller.GitPoller(
+        project='Evergreen',
+        repourl=eg_git,
+        workdir='/tmp/buildbot_eg_work'
     )
 )