[Buildbot-commits] buildbot/buildbot scheduler.py,1.20,1.21
Brian Warner
warner at users.sourceforge.net
Sat Sep 30 22:36:24 UTC 2006
Update of /cvsroot/buildbot/buildbot/buildbot
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3381/buildbot
Modified Files:
scheduler.py
Log Message:
[project @ Periodic/Nightly: add a reason= to the BuildSet, to explain why it happened]
Original author: warner at lothar.com
Date: 2006-09-30 22:34:46
Index: scheduler.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/scheduler.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- scheduler.py 17 Sep 2006 20:43:39 -0000 1.20
+++ scheduler.py 30 Sep 2006 22:36:22 -0000 1.21
@@ -334,6 +334,8 @@
self.builderNames = builderNames
self.periodicBuildTimer = periodicBuildTimer
self.branch = branch
+ self.reason = ("The Periodic scheduler named '%s' triggered this build"
+ % name)
self.timer = internet.TimerService(self.periodicBuildTimer,
self.doPeriodicBuild)
self.timer.setServiceParent(self)
@@ -348,7 +350,8 @@
def doPeriodicBuild(self):
bs = buildset.BuildSet(self.builderNames,
- SourceStamp(branch=self.branch))
+ SourceStamp(branch=self.branch),
+ self.reason)
self.submit(bs)
@@ -409,6 +412,8 @@
self.branch = branch
self.delayedRun = None
self.nextRunTime = None
+ self.reason = ("The Nightly scheduler named '%s' triggered this build"
+ % name)
def addTime(self, timetuple, secs):
return time.localtime(time.mktime(timetuple)+secs)
@@ -501,7 +506,8 @@
# And trigger a build
bs = buildset.BuildSet(self.builderNames,
- SourceStamp(branch=self.branch))
+ SourceStamp(branch=self.branch),
+ self.reason)
self.submit(bs)
def addChange(self, change):
More information about the Commits
mailing list