This plugin executes a groovy script in the Jenkins JVM. Typically, the script checks some conditions and changes accordingly the build result, puts badges next to the build in the build history and/or displays information on the build summary page.
By default, Pipeline builds go through in order.
The milestone plugin forces all builds to go through in order.
i.e. an older build cannot pass a milestone if a newer build has passed it.