【发布时间】:2020-01-28 17:29:37
【问题描述】:
我有一个管道列表,例如: 试运行优先 试运行我 试运行-djfhd 试运行-jhfkjdh ...
我想销毁这些管道,我该如何申请:
fly -t test destroy-pipeline -p "all pipelines starting with test-run-*" ?
谢谢
【问题讨论】:
我有一个管道列表,例如: 试运行优先 试运行我 试运行-djfhd 试运行-jhfkjdh ...
我想销毁这些管道,我该如何申请:
fly -t test destroy-pipeline -p "all pipelines starting with test-run-*" ?
谢谢
【问题讨论】:
我认为执行此类操作的合理方法是使用管道将多个命令链接在一起。例如,您可以使用以下命令实现此目的:
fly -t test pipelines | awk '/^test-run-/ { print $1 }' | xargs -n1 fly -t test destroy-pipline -n -p
【讨论】: