[Buildbot-devel] Conceptual problem with custom build steps

Dustin J. Mitchell dustin at zmanda.com
Sun Feb 15 23:40:05 UTC 2009


On Fri, Feb 13, 2009 at 5:42 PM, Ian Peters-Campbell
<mahatmamanic at gmail.com> wrote:
> This, however, is not working.  I get errors (at build execution time) about
> SpecialBuildStep not having a _buildMasterCommand attribute.  If I try to
> pass the parameters in for the buildMasterCommand and instantiate it within
> the SpecialBuildStep, that causes another kind of problem where (at build
> execution time again) I am told that there are missing arguments before my
> keyword arguments.

This is a problem with arrangement where BuildStep objects are their
own factories.

This is how my constructor looks:

 17     def __init__(self, command, **kwargs):
 18         BuildStep.__init__(self, **kwargs)
 19         self.addFactoryArguments(command=command)
 20         self.command=command

On a larger note, I have a MasterShellCommand class that I'll get
committed shortly, which may do what you need.

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com




More information about the devel mailing list