2019年8月6日火曜日

[Azure Pipelines] 頻繁にトリガーされるジョブの実行回数を削減する

Build pipeline triggers - Azure Pipelines | Microsoft Docs

If you have a lot of team members uploading changes often, then you might want to reduce the number of builds you're running. If you set batch to true, when a build is running, the system waits until the build is completed, then queues another build of all changes that have not yet been built.

trigger:
  batch: true

trigger に batch: true をつけると、キューイングされたジョブは1つにマージされるようです。
Azure Pipelines の場合は、実行中のジョブは完了を待ちます。
Travis CI のように実行中のジョブをキャンセルして、キューの最後を実行する auto-cancel とは挙動が異なりますので注意が必要です。

0 件のコメント:

コメントを投稿