Jarda Grešula
unread,Jan 18, 2009, 6:27:46 AM1/18/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Bitten
Can be a build slave configured so that it either performs a
single build or quits immediately if there is no pending build?
The simplest solution I've found is to patch slave.py as follows
and run it with --single and --interval=-1.
Index: slave.py
===================================================================
--- slave.py (revision 571)
+++ slave.py (working copy)
@@ -175,6 +175,8 @@
raise ExitSlave(EX_UNAVAILABLE)
except ExitSlave, e:
return e.exit_code
+ if self.poll_interval < 0:
+ raise ExitSlave(EX_OK)
time.sleep(self.poll_interval)
def quit(self):
thanks,
--
Jarda