forked from eddiewebb/circleci-queue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cancel build if pipeline number is newer
If pipeline number is newer, that means we have reach the API limit of running jobs, and newer pipeline already got front of the line, so we can cancel the current build as it is already out of date. In our use case this means we would try to deploy an older commit which would then get rejected since a newer one is already deployed. Also, reduce max wait time by default, we never want to wait for that long. Plus, drop "dont-quit" and "force-cancel-previous", we don't use them and not implemented.
- Loading branch information
Showing
3 changed files
with
21 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters