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

          Jan Hoppe created issue -
          Jan Hoppe made changes -
          Summary Original: Diesable restarting stages in jenkinsfile New: Disable restarting stages in jenkinsfile
          Jan Hoppe made changes -
          Link New: This issue is related to JENKINS-45455 [ JENKINS-45455 ]
          Jan Hoppe made changes -
          Summary Original: Disable restarting stages in jenkinsfile New: Disable restarting stages in jenkinsfile optionally
          Andrew Bayer made changes -
          Labels New: stage-restart-improvements
          Andrew Bayer made changes -
          Sprint New: Declarative backlog [ 621 ]

          Andrew Bayer added a comment -

          It might be worthwhile to be able to disable restarting individual stages as well as the whole Pipeline.

          Andrew Bayer added a comment - It might be worthwhile to be able to disable restarting individual stages as well as the whole Pipeline.

          Jan Hoppe added a comment -

          That's right, disabling restart for all or a single stage would be great! 

          Jan Hoppe added a comment - That's right, disabling restart for all or a single stage would be great! 

          Chris Maes added a comment -

          the restart stage button is very confusing for many people because way more visible than the global restart (for the whole pipeline)... so disabling that would be nice.

          Chris Maes added a comment - the  restart stage button is very confusing for many people because way more visible than the global restart (for the whole pipeline)... so disabling that would be nice.

          Edward Maxwell-Lyte added a comment - - edited

          Our company would also like this feature to ensure partial pipelines can't be run.

          Edward Maxwell-Lyte added a comment - - edited Our company would also like this feature to ensure partial pipelines can't be run.

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

              Created:
              Updated:
              Resolved: