如何清除大厅中的所有资源检查

How to clear off all resource checks in concourse

我有一个每隔几分钟就会触发一次的资源,它创建了一个包含数百个待处理作业的队列。我想清除所有旧资源版本,以便它停止尝试启动新作业。如何在不删除和重新创建管道或影响任何其他活动管道的情况下执行此操作?

如果我理解正确的话,你有类似的东西:

> fly -t vm builds
id  pipeline/job       build  status    
25  queue-up/queue-up  25     started   
24  queue-up/queue-up  24     started   
23  queue-up/queue-up  23     started   
22  queue-up/queue-up  22     started   
21  queue-up/queue-up  21     started   
20  queue-up/queue-up  20     started   
19  queue-up/queue-up  19     started   
18  queue-up/queue-up  18     started   
17  queue-up/queue-up  17     succeeded 

其中一些构建可能是 pending 而不是 started

如果不删除管道,就无法清除旧资源版本。另一方面,您始终可以中止所有或部分构建:

> for i in (seq 24 18); fly -t vm abort-build --build $i; end
build successfully aborted
build successfully aborted
build successfully aborted
build successfully aborted
build successfully aborted
build successfully aborted
build successfully aborted

> fly -t vm builds
id  pipeline/job       build  status   
25  queue-up/queue-up  25     started  
24  queue-up/queue-up  24     aborted  
23  queue-up/queue-up  23     aborted  
22  queue-up/queue-up  22     aborted  
21  queue-up/queue-up  21     aborted  
20  queue-up/queue-up  20     aborted  
19  queue-up/queue-up  19     aborted  
18  queue-up/queue-up  18     aborted  
17  queue-up/queue-up  17     succeeded