4 Sep 2007 05:50
Reading output from slave command
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(Continue reading)
RSS Feed