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 <kip...@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 <kip...@163.com>
>
> _______________________________________________
> users mailing list
> users@buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
_______________________________________________
users mailing list
users@buildbot.net
https://lists.buildbot.net/mailman/listinfo/users

Reply via email to