[Buildbot-devel] Dynamic list of logfiles

Greg Ward gerg.ward+buildbot at gmail.com
Mon Feb 16 19:35:41 UTC 2009

Hi all --

I have a ShellCommand that creates log files based on what it finds in
its build tree.  Specifically, it's a wrapper around "rpmbuild" that
processes <dir>/*.spec, creating one log for each .spec file

Currently, I have cobbled something together where I use a SetProperty
step to look for the same list of *.spec files and derive the log
filenames from that.  That's a bit gross because I'm repeating two
bits of logic (find *.spec and transmute foo.spec to foo.log) in two
places (the script being run and master.cfg).

It has occurred to me that a ShellCommand that dynamically discovers
log files would be really cool.  I think I want something like this:

                        "--spec-dir", "spec", 
                        "--log-dir", "log"],

Then, as my buildrpms script is running, SlaveShellCommand (I think)
would periodically look for files matching my logfilepattern and
update the step's log files accordingly.

Does this sound crazy?  Has anyone attempted this?  Is it possible
to do entirely within master.cfg, or would I need to patch slave-side

Thanks --


More information about the devel mailing list