concourse:使用fly命令破坏管道

问题描述 投票:0回答:1

我有一个管道列表,例如:试运行优先测试我测试运行djfhd测试运行jhfkjdh...

我想销毁这些管道,如何申请:fly -t test destroy-pipeline -p "all pipelines starting with test-run-*"

谢谢

concourse fly
1个回答
0
投票

我认为执行此类操作的合理方法是使用管道将多个命令链接在一起。例如,您可以使用以下命令来实现此目的:

fly -t test pipelines | awk '/^test-run-/ { print $1 }' | xargs -n1 fly -t test destroy-pipline -n -p
© www.soinside.com 2019 - 2024. All rights reserved.