changeset 279:b2fd70c76dde

try to add a force scheduler
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 31 Jul 2012 16:26:42 -0700
parents 0f754bf9fd8a
children 635ace3bcbc5
files autobot/template/master/master.cfg
diffstat 1 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/template/master/master.cfg	Tue Jul 31 15:01:49 2012 -0700
+++ b/autobot/template/master/master.cfg	Tue Jul 31 16:26:42 2012 -0700
@@ -85,6 +85,7 @@
 ####### SCHEDULERS
 from buildbot.scheduler import Scheduler
 from buildbot.schedulers.filter import ChangeFilter
+from buildbot.schedulers.forcesched import *
 buildernames = [i['name'] for i in builders]
 c['schedulers'] = []
 
@@ -96,6 +97,25 @@
                                      treeStableTimer=treeStableTimer,
                                      change_filter=change_filter,
                                      builderNames=buildernames))
+    sch = ForceScheduler(name="force",
+                         builderNames=buildernames,
+                         branch=branch,
+
+                         # will generate a text input
+                         reason=StringParameter(name="reason",label="reason:<br>",
+                                                required=True, size=80),
+
+                         # will generate nothing in the form, but revision, repository,
+                         # and project are needed by buildbot scheduling system so we
+                         # need to pass a value ("")
+                         revision=FixedParameter(name="revision", default=""),
+                         repository=FixedParameter(name="repository", default=""),
+                         project=FixedParameter(name="repository", default=""),
+
+                         # in case you dont require authentication this will display
+                         # input for user to type his name
+                         username=UserNameParameter(label="your name:<br>", size=80))
+    c['schedulers'].append(sch)
 
 ####### STATUS TARGETS
 c['status'] = []