Issue
I'm looking into the ability of restarting a jenkins pipeline from a failed stage in the middle of it (for example).
I inherited this CI server and am tasked with updating this, so I found this feature to "restart from stage": href="https://jenkins.io/doc/book/pipeline/running-pipelines/#restart-from-a-stage" rel="nofollow noreferrer">https://jenkins.io/doc/book/pipeline/running-pipelines/#restart-from-a-stage
However, I don't see this button exposed on my jenkins UI. I'm guessing it's because my version of jenkins is old.
Here's some info on my server: Jenkins ver. 2.107 Plugin Info: Pipeline - 2.5
I can share other plugin info if it helps.
Questions: 1) What do I need to do to get the restart from stage feature? 2) How can I find out next time what version I need to get certain new features (if this is the root cause)?
Solution
See this. Restart stages was added in declarative 1.3. The link should show required dependencies. Ensure they are all present.
Also, note that currently, the UI for restarting a stage in a Declarative Pipeline is only available in the Classic Jenkins UI. Blue Ocean will be adding support for stage restarting in the near future.
Answered By - ben5556
Answer Checked By - Candace Johnson (JavaFixing Volunteer)