Travis CI’s Auto Cancellation feature can really help to save resources on CI cluster when a user is keep committing or changing something especially on GitHub web gui since they can’t work on multiple fine at a single time, is it possible to request this feature on Drone? Thanks!
@microadam it looks like we don’t expose the options in the user interface yet (we should) but you can configure a repository to auto-cancel push or pull request pipelines that are pending in-queue using the command line tools (see relevant flags below). Note that we do not auto-cancel running builds; only pending builds that have not yet started.
% drone repo update --help
NAME:
drone repo update - update a repository
USAGE:
drone repo update [command options] <repo/name>
OPTIONS:
--trusted repository is trusted
--protected repository is protected
--timeout value repository timeout (default: 0s)
--visibility value repository visibility
--ignore-forks ignore forks
--ignore-pull-requests ignore pull requests
--auto-cancel-pull-requests automatically cancel pending pull request builds
--auto-cancel-pushes automatically cancel pending push builds
--config value repository configuration path (e.g. .drone.yml)
--build-counter value repository starting build number (default: 0)
--unsafe validate updating the build-counter is unsafe