[Buildbot-devel] addStep ShellCommand echo into a file
john gale
john at smadness.com
Thu Jan 10 01:19:50 UTC 2008
I'm trying to create a buildStep which echo's a simple pathname into a
file.
Mac OS 10.5
class UpdateTOTPath(ShellCommand):
def start(self):
bname = self.getProperty("buildername")
bnumber = self.getProperty("buildnumber")
brevision = self.getProperty("got_revision")
self.setCommand(["echo", "/apache/docs/builds/build-%s-r%s-b
%s.tgz" % (bname, brevision, bnumber), ">", "archive/%s.txt" % (bname)])
ShellCommand.start(self)
...
f_build1.addStep(UpdateTOTPath())
Yet this doesn't seem to be working. It's as if the build command has
usurped standard out and is not letting it get into the file at all.
In the log for this build step, we see the command:
echo /apache/docs/builds/build-syncbot1-r18356-b34.tgz > archive/
syncbot1.txt
in dir /build/build (timeout 1200 secs)
watching logfiles {}
argv: ['echo', '/apache/docs/builds/build-syncbot1-r18356-b34.tgz',
'>', 'archive/syncbot1.txt']
But then the standard out for the buildstep is what should have gone
into the file:
/apache/docs/builds/build-syncbot1-r18356-b34.tgz > archive/syncbot1.txt
and the file itself is empty.
Is there a way we can succeed in piping into a file through a buildStep?
thanks,
~ john
=================
support the arts!
www.smadness.com
updated October 12, 2005
More information about the devel
mailing list