[Buildbot-commits] buildbot/buildbot interfaces.py, 1.48, 1.49 master.py, 1.99, 1.100
Brian Warner
warner at users.sourceforge.net
Fri Nov 24 07:19:57 UTC 2006
Update of /cvsroot/buildbot/buildbot/buildbot
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1465/buildbot
Modified Files:
interfaces.py master.py
Log Message:
[project @ finally remove forceBuild]
Original author: warner at lothar.com
Date: 2006-11-24 06:54:31
Index: interfaces.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/interfaces.py,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- interfaces.py 15 Oct 2006 17:51:11 -0000 1.48
+++ interfaces.py 24 Nov 2006 07:19:55 -0000 1.49
@@ -826,26 +826,6 @@
"""Retrieve the IBuilderControl object for the given Builder."""
class IBuilderControl(Interface):
- def forceBuild(who, reason):
- """DEPRECATED, please use L{requestBuild} instead.
-
- Start a build of the latest sources. If 'who' is not None, it is
- string with the name of the user who is responsible for starting the
- build: they will be added to the 'interested users' list (so they may
- be notified via email or another Status object when it finishes).
- 'reason' is a string describing why this user requested the build.
-
- The results of forced builds are always sent to the Interested Users,
- even if the Status object would normally only send results upon
- failures.
-
- forceBuild() may raise L{NoSlaveError} or L{BuilderInUseError} if it
- cannot start the build.
-
- forceBuild() returns a Deferred which fires with an L{IBuildControl}
- object that can be used to further control the new build, or from
- which an L{IBuildStatus} object can be obtained."""
-
def requestBuild(request):
"""Queue a L{buildbot.process.base.BuildRequest} object for later
building."""
Index: master.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/master.py,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- master.py 24 Nov 2006 07:19:48 -0000 1.99
+++ master.py 24 Nov 2006 07:19:55 -0000 1.100
@@ -229,21 +229,6 @@
d.addCallbacks(_sent, _set_failed)
return d
- def perspective_forceBuild(self, name, who=None):
- # slave admins are allowed to force any of their own builds
- for b in self.builders:
- if name == b.name:
- try:
- b.forceBuild(who, "slave requested build")
- return "ok, starting build"
- except interfaces.BuilderInUseError:
- return "sorry, builder was in use"
- except interfaces.NoSlaveError:
- return "sorry, there is no slave to run the build"
- else:
- log.msg("slave requested build for unknown builder '%s'" % name)
- return "sorry, invalid builder name"
-
def perspective_keepalive(self):
pass
@@ -1035,6 +1020,6 @@
components.registerAdapter(Control, BuildMaster, interfaces.IControl)
-# so anybody who can get a handle on the BuildMaster can force a build with:
-# IControl(master).getBuilder("full-2.3").forceBuild("me", "boredom")
+# so anybody who can get a handle on the BuildMaster can cause a build with:
+# IControl(master).getBuilder("full-2.3").requestBuild(buildrequest)
More information about the Commits
mailing list