Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33846

Restart pipeline from specific stage, after failure

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:

      Description

      This feature is unplanned and not actively worked on

      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.

      Thanks,
      James Dumay
      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.

        Attachments

          Issue Links

            Activity

            Hide
            cb_tes_global Constantin Bugneac added a comment -

            +1 Completely agree with comments above - it's a shame that Jenkins lacks this obvious feature. 

            Show
            cb_tes_global Constantin Bugneac added a comment - +1 Completely agree with comments above - it's a shame that Jenkins lacks this obvious feature. 
            Hide
            jmcollin Jean-Marc Collin added a comment -

            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. 

            Show
            jmcollin Jean-Marc Collin added a comment - 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. 
            Hide
            comscience15 Nat Sr added a comment -

            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

             

            Show
            comscience15 Nat Sr added a comment - 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  
            Hide
            jamesdumay James Dumay added a comment -

            The plan is to allow this to work for any previously executed stage

            Show
            jamesdumay James Dumay added a comment - The plan is to allow this to work for any previously executed stage
            Hide
            comscience15 Nat Sr added a comment - - edited

            James Dumay 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?

            Ex. 
            1) Executed Stage 1
            2) Executed Stage 2
            3) Re-executed Stage 2
            4) Executed Stage 3 ....... and so on

            Show
            comscience15 Nat Sr added a comment - - edited James Dumay 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? Ex.  1) Executed Stage 1 2) Executed Stage 2 3) Re-executed Stage 2 4) Executed Stage 3 ....... and so on

              People

              • Assignee:
                Unassigned
                Reporter:
                michaelhuettermann Michael Hüttermann
              • Votes:
                139 Vote for this issue
                Watchers:
                180 Start watching this issue

                Dates

                • Created:
                  Updated: