[Buildbot-devel] BuildBot setProperty in MasterShellCommand

Ian Zimmerman itz at buug.org
Sat Jul 30 09:27:08 UTC 2011


Timothy> BuildBot Dev - I'm trying to do something that at face value
Timothy> that I thought would be simple but has turned out to be
Timothy> slightly more complicated.

Timothy> I want to get build numbers out of another database separate
Timothy> from buildbot.  But I need to set it in a property to be passed
Timothy> in a factory step such that:

Timothy> factory = BuildFactory() # check out the source
Timothy> factory.addStep(Git(repourl='git://github.com/buildbot/pyflakes.git',
Timothy> mode='copy'))
Timothy> factory.addStep(CommandToSetProperty(buildnumber=getBuildNumberFromAnotherDB())
Timothy> # run the tests (note that this will require that 'trial' is
Timothy> installed)
Timothy> factory.addStep(ShellCommand(command=["DoCustomBuild",
Timothy> "WithMYBuildNumber"]))

You could send the number down to the slave using FileDownload and then
set the property with a SetProperty step (using a custom extract_fn maybe).

Not the most elegant of solutions, I know.

-- 
Ian Zimmerman
gpg public key: 1024D/C6FF61AD
fingerprint: 66DC D68F 5C1B 4D71 2EE5  BD03 8A00 786C C6FF 61AD
Rule 420: All persons more than eight miles high to leave the court.




More information about the devel mailing list