I would like to know if there is something wrong with below pipeline script.
Step 1 : Trigger a pipeline build with the error error commented out
Step 2 : Immediately trigger another pipeline build with error error un-commented
Step 3 : You will see that the build 1 gets superseded and aborted as soon as the build 2 errors out.
I would expect build 1 to not get superseded and finish, since build 2 failed, not passed.
I have removed the milestone steps from the script and then repeated Steps 1 & 2. This time, build 1 does not get superseded and do not get aborted.
I wonder if the usage of milestones is flawed here ? If so, how can i change the script to achieve expected behavior
Sample Pipeline Script: