簡體   English   中英

concourse : 使用 fly 命令銷毀管道

[英]concourse : destroy pipelines with fly command

我有一個管道列表,例如:test-run-First test-run-Me test-run-djfhd test-run-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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM