Pipeline #1
stage("build") {
echo "in build"
}
stage("deploy to prod") {
input message: "Deploy to prod?"
milestone(ordinal: 20, label: "prod")
echo "deploying to prod"
}
Pipeline #2
stage("build") {
echo "in build"
}
stage("deploy to test") {
milestone(ordinal: 10, label: "test")
echo "deploying to test"
}
stage("deploy to prod") {
input message: "Deploy to prod?"
milestone(ordinal: 20, label: "prod")
echo "deploying to prod"
}
After creating a pipeline job with Pipeline #2 and starting 3 invocations, Jenkins looks like this:
Also, going to the script console and executing this code:
Produces this output:
This shows all 3 builds having hit the milestone.
Next, if I abort build #2 then Jenkins looks like this:
It doesn't seem like consistent behavior with the first pipeline I showed, or even correct behavior for Build #1 to be aborted after aborting Build #2.
Am I misunderstanding something, or is this a bug?