[Buildbot-devel] Reading output from slave command

Terry.Rankine at csiro.au Terry.Rankine at csiro.au
Tue Sep 4 03:50:17 UTC 2007


Hi

I have a build process that creates files, to which I don't know the
names of.
I want to then upload them back to the buildmaster.

Can I integrate the output from a shellcommand and manipulate its
contents into a string for the upload step?

Would look like:

xmlnmodelScons.addStep(shell.ShellCommand, command=["scons", "-c"],
workdir="build")
xmlnmodelScons.addStep(shell.ShellCommand, command=["scons"],
workdir="build")
xmlnmodelScons.addStep(shell.ShellCommand, command=["scons", "test"],
workdir="build")
xmlnmodelScons.addStep(shell.ShellCommand, command=["scons", "package"],
workdir="build")

getoutput = lastStep.output()
Do stuff to output - extract the_file_name

xmlnmodelScons.addStep(FileUpload, slavesrc="%s" % (the_file_name),
masterdest="%s" %(the_file_name) )



Regards,

Terry Rankine

61 8 6436 8601




More information about the devel mailing list