We would like to have the ability to enforce queuing in jobs.
Mark a job with enforce_queuing will enforce that only one job can run at any time, and if another build triggers the same job, the job will queue until the other build is finished.
This feature could be handy for continues deployment where we want to guarantee that only one deploy is being run at any given time.
For example, after we merge to
master, we would like to make sure that no other deploy jobs will run until the currently running one is finished.
workflows: jobs: -build - deploy: enforce_queuing: true filter: branches: only: master requires: - build