[users at bb.net] How to use regular expressions in steps.ShellCommand?

Pierre Tardy tardyp at gmail.com
Sat Aug 5 11:41:11 UTC 2017


You should use the shell mode:
factory.addStep(steps.ShellCommand(command="tar czvf rootfs.tar.gz
rootfs/*")

On Sat, Aug 5, 2017 at 12:29 PM kipade <kipade at 163.com> wrote:

> I want to use tar to compress a directory into a single
> tarbar file. I write buildstep like:
>
> factory.addStep(steps.ShellCommand(command=["tar", "czvf",
> "rootfs.tar.gz", "rootfs/*"])
>
> but I will got an error about no such file ‘rootfs/*',
> it seems buildbot add a paire quote to my regular expression
> string rootfs/*, but I just want it send all the command
> to shell directly.
> What should I do to avoiding such failure?
>
> Regards,
> --
> kipade <kipade at 163.com>
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170805/66f43eb6/attachment.html>


More information about the users mailing list