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

Disable restarting stages in jenkinsfile optionally

    • Declarative backlog
    • 2.2121.vd87fb_6536d1e

      I'd like to switch off the restart stage option.

      My pipelines currently don't work correctly after restarting a stage (I check out git only at first stage...)

      like that: 

      options {
          disableResume()

          disableRestart()
      }

          [JENKINS-54250] Disable restarting stages in jenkinsfile optionally

          Ivan Pavlovic added a comment -

          markewaite thank you very much (and sorry for the late reply). I will be reaching out to Jenkins developers via the mailing list. Looking forward to my first contribution to Jenkins project!

          Ivan Pavlovic added a comment - markewaite thank you very much (and sorry for the late reply). I will be reaching out to Jenkins developers via the mailing list. Looking forward to my first contribution to Jenkins project!

          Ivan Pavlovic added a comment -

          Hi markewaite . I've subscribed to the developers email group, wrote an email but got no response. Anything else i can do?

          Ivan Pavlovic added a comment - Hi markewaite . I've subscribed to the developers email group, wrote an email but got no response. Anything else i can do?

          Mark Waite added a comment -

          ipdev sorry that you didn't get a response. You can refresh the question by replying to it on the list.

          Mark Waite added a comment - ipdev sorry that you didn't get a response. You can refresh the question by replying to it on the list.

          Ivan Pavlovic added a comment -

          Hi markewaite . I did as proposed, but still no answer. I will start creating PRs, as i would like to contribute by fixing the issue. Hopefully, i will get some communication going there. Thanks for helping out so far!

          Ivan Pavlovic added a comment - Hi markewaite . I did as proposed, but still no answer. I will start creating PRs, as i would like to contribute by fixing the issue. Hopefully, i will get some communication going there. Thanks for helping out so far!

          Mike Klein added a comment -

          Hi! New to this thread but also need this solution for the reasons stated by the OP. Any word on this?

          Mike Klein added a comment - Hi! New to this thread but also need this solution for the reasons stated by the OP. Any word on this?

          Ivan Pavlovic added a comment -

          mkleinaip PRs are open. However, not merged yet

          Ivan Pavlovic added a comment - mkleinaip PRs are open. However, not merged yet

          Mike Klein added a comment -

          ipdev, thank you for the update.

          Mike Klein added a comment - ipdev , thank you for the update.

          m l added a comment - - edited

          This issue can be closed since PR #560 is merged.

          m l added a comment - - edited This issue can be closed since PR #560 is merged.

          Ivan Pavlovic added a comment -

          mrlov Thanks for updating the ticket!

          Ivan Pavlovic added a comment - mrlov Thanks for updating the ticket!

          Hari Dara added a comment -

          Even after the disableResume option is used, I see that the build state is still periodically serialized. Considering that there is no need to resume, what is the use of saving the state periodically? Shouldn't that be completely avoided?

          Hari Dara added a comment - Even after the disableResume option is used, I see that the build state is still periodically serialized. Considering that there is no need to resume, what is the use of saving the state periodically? Shouldn't that be completely avoided?

            ipdev Ivan Pavlovic
            hoppej Jan Hoppe
            Votes:
            38 Vote for this issue
            Watchers:
            43 Start watching this issue

              Created:
              Updated:
              Resolved: