Ticket #554 (closed enhancement: fixed)
Add a way to pass Properties dicts Trigger buildsteps to Triggerable schedulers
|Reported by:||dlatornell||Owned by:||dustin|
The long version of what I want to do and why is in this thread: http://sourceforge.net/mailarchive/forum.php?thread_name=6279c0a40904161544s395c4c7bx621b7eacc2813fef%40mail.gmail.com&forum_name=buildbot-devel
Basically, I have several schedulers that have a boolean property. The builds that those schedulers launch need to check the value of the property and act accordingly in some of their custom ShellCommand buildsteps. Some of those builds have Trigger buildsteps that launch other builds via Triggerable schedulers. Presently the only way to pass the property from the original scheduler to the Triggerable is to use WithProperties and the set_properties argument of the Trigger step. But WithProperties renders property values to strings, and that is incompatible with the boolean property I want to pass along.
To facilitate what I need to do, I'm thinking of implementing a CopyProperties class that is similar to WithProperties but returns a dict of properties that the Trigger step's set_properties argument can consume. This would allow something like:
- Owner set to dustin
- Status changed from new to accepted