[Buildbot-devel] ShellCommand question
Cavanagh, Sean (Sean)
scavanagh at avaya.com
Wed Jun 20 11:53:25 UTC 2007
Duncan,
You might write a one-liner shell script to do your copy, and then call
that from buildbot. This has the advantage of making the upload step
available to someone who isn't using buildbot.
Or you could write a custom ShellCommand subclass that uses python os
libraries to get an explicit list of the files in question.
There's probably a simpler way to do globbing but I tend to go for
option A.
Regards,
Sean C.
________________________________
From: buildbot-devel-bounces at lists.sourceforge.net
[mailto:buildbot-devel-bounces at lists.sourceforge.net] On Behalf Of
Duncan Ferguson
Sent: Wednesday, June 20, 2007 6:58 AM
To: buildbot-devel at lists.sourceforge.net
Subject: [Buildbot-devel] ShellCommand question
Hiya list,
I have a step that attempts to send a number of files to a remove server
using scp, such as
factoryd.addStep(
shell.ShellCommand,
command=["scp","-q","built_files.*.tar.gz","server3:/build_files/"],
)
but the "build_files.*.tar.gz" is not expanded through a shell glob.
What is the best way to achieve this? I dont want to have to split this
out into a number of steps as that involves multiple factories and
multiple steps within those factories....
Thanks
Duncs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20070620/2b43c60b/attachment.html>
More information about the devel
mailing list