Overview - Milestone step for concurrency
What is it?
The Milestone step in Jenkins is a way to control the flow of concurrent builds in a pipeline. It acts like a checkpoint that allows only the latest build to proceed past it, canceling older builds waiting at the same point. This helps avoid wasted work and resource conflicts when multiple builds run simultaneously. It is especially useful in pipelines where only the most recent changes should be deployed or tested.
Why it matters
Without the Milestone step, Jenkins pipelines can waste time and resources running outdated builds that are no longer relevant. This can slow down delivery and cause conflicts in shared environments. The Milestone step ensures that only the newest build continues, improving efficiency and reducing errors in continuous integration and delivery. It helps teams deliver faster and with more confidence.
Where it fits
Before learning the Milestone step, you should understand Jenkins pipelines and how concurrency works in them. After mastering it, you can explore advanced pipeline controls like locks, throttling, and parallel stages to manage resources and build order more precisely.