Status: Open (View Workflow)
The use case for restarting stages of a Pipeline is an important one and as such we intend to include this feature in Declarative Pipeline (
JENKINS-45455) as open source. I have put this feature on the Declarative Pipeline roadmap. I encourage you to review JENKINS-45455 and leave a comment to ensure that your use case is covered.
For the purpose of clarity, we will not be providing this feature for scripted pipelines.
After review of the Checkpoints feature, the CloudBees team have come to the decision that will not be open sourcing Checkpoints. I know we had signalled in this issue that we would be open sourcing this feature and I am sincerely sorry to disappoint those who have been waiting for us to do so.
Product Manager, CloudBees Inc
It would be fine, and customers ask me for that continuously to have the function to again start a failed pipeline,but not at the very beginning, rather at a stage along the pipeline chain, particularly a stage which failed before during a former run,and the cause of the failure was fixed.
Maybe I've chosen the wrong "component" for this ticket. Please feel free to adjust accordingly.
Tested on Jenkins ver. 2.0-beta-1, and its new Pi Pipeline item.
- is blocked by
JENKINS-35989 Allow for Restartable Pipeline Step
- is duplicated by
JENKINS-36813 Re-run particular steps or stage
- relates to
JENKINS-45455 Restarting stages
- links to
One year later and this issue is already open and not done. In time, I switch to gitlab CI and this does the work even if functions are not at same level.
Is it possible to not only for after failure? Sometime I need to get redo the same stage, for example building a new build and testing until all pass before going to next step
jamesdumay that's nice. Thanks James. Hopefully, we can get it ASAP.
BTW, I saw this ticket which already has a PR up (https://issues.jenkins-ci.org/browse/JENKINS-45455) which I am not sure if it is the same thing or not but it looks like it will restart a specific stage from "Previous build". Can we restart the same build? Not kick off another build and run the specific stage?
1) Executed Stage 1
2) Executed Stage 2
3) Re-executed Stage 2
4) Executed Stage 3 ....... and so on
+1 Completely agree with comments above - it's a shame that Jenkins lacks this obvious feature.