I have a declarative pipeline that builds and pushes the artifacts to multiple environments and  requires an interactive input for PROD deployment and we'd use 'Restart from stage' to achieve this.  However the link to 'Restart from stage' is missing after a number of builds.  Does anyone have the same problem?

      I'm using Jenkins 2.138.3 and Pipeline Declarative plugin 1.3.2.

          [JENKINS-58013] Restart From Stage link missing

          Looks like there is a bug. I found that the button re-appears if we do the following

          1. Click on the Build number.
          2. Click on "Replay" or "Pipeline Steps" button.
          3. Click on either the Browser back button or on the Build number.

          Sundeep Koluguri added a comment - Looks like there is a bug. I found that the button re-appears if we do the following Click on the Build number. Click on "Replay" or "Pipeline Steps" button. Click on either the Browser back button or on the Build number.

          I have the same issue, Declarative plugin 1.6.0.

          Rebuild indeed shows when clicking a previous build like suggested by sundeep0121 but unfortunately at least for me it doesn't restore "Replay" back to job's main page, it only ever shows if you open some previous build.

          My Jenkinsfile was originally written in Scripted Syntax, and I now converted it into Declarative Syntax. Maybe that has some impact on this issue, don't know.

          Tuukka Mustonen added a comment - I have the same issue, Declarative plugin 1.6.0. Rebuild indeed shows when clicking a previous build like suggested by sundeep0121 but unfortunately at least for me it doesn't restore "Replay" back to job's main page, it only ever shows if you open some previous build. My Jenkinsfile was originally written in Scripted Syntax, and I now converted it into Declarative Syntax. Maybe that has some impact on this issue, don't know.

          Jan added a comment -

          Its seems like the problem is a pipeline executed in "Use Groovy Sandbox" mode. After removing the Sandbox and approving the pipeline as a administrator, the replay button appeared for me.

          Jan added a comment - Its seems like the problem is a pipeline executed in "Use Groovy Sandbox" mode. After removing the Sandbox and approving the pipeline as a administrator, the replay button appeared for me.

            Unassigned Unassigned
            minhtram minhtram nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: