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

Option for input or stage step to cancel older executions

    XMLWordPrintable

Details

    Description

      Hi,

      I have a workflow that need a user input at some stage.
      However, due to the frequent commits, which trigger the builds, I get to the case when I have several builds of the same workflow stay idle in the list awaiting the user input.

      I would expectr my workflow to discard older builds if the newer build has reached the same stage.

      But I cannot succeed that goal.

      If I use the workflow like:

      stage title: 'DevBuild', concurrency: 1
      // do build
      stage title: 'Integration', concurrency: 1
      input message: 'Proceed?'
      // do integration
      

      then the very first build enters 'Integration' stage and pauses for user input. The other newer builds may superseed each other, but there is always the last build that gets to 'Integration' stage and waits until the very first build completes (because it cannot enter stage Integration).

      I would like the newer build to discard the older build which waits for user input in this case, so that newer build can be decided by the user.

      Is it possible to implement such a scenario?

      Thank you

      Attachments

        Issue Links

          Activity

            ykryshchuk Yuriy Kryshchuk created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Issue Type Improvement [ 4 ] New Feature [ 2 ]
            Summary User input in a stage Option for input step to cancel older executions
            jglick Jesse Glick made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            jglick Jesse Glick made changes -
            Summary Option for input step to cancel older executions Option for input or stage step to cancel older executions
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-29892 [ JENKINS-29892 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 177 (Web Link)" [ 13110 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            anshuarya Anshu Arya made changes -
            Link This issue is related to JENKINS-30757 [ JENKINS-30757 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-32829 [ JENKINS-32829 ]
            amuniz Antonio Muñiz made changes -
            Assignee Jesse Glick [ jglick ] Antonio Muñiz [ amuniz ]
            amuniz Antonio Muñiz made changes -
            Remote Link This issue links to "PR 355 (Web Link)" [ 14028 ]
            nwegner Niels Wegner made changes -
            Remote Link This issue links to "PR 1 (Web Link)" [ 14433 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 161231 ] JNJira + In-Review [ 185575 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Component/s pipeline-milestone-step-plugin [ 21448 ]
            Component/s pipeline-stage-step-plugin [ 21709 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            amuniz Antonio Muñiz made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Closed [ 6 ]
            michaelneale Michael Neale made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Resolved [ 5 ]
            ironsean Sean MacKay made changes -
            Status Resolved [ 5 ] In Review [ 10005 ]

            People

              amuniz Antonio Muñiz
              ykryshchuk Yuriy Kryshchuk
              Votes:
              27 Vote for this issue
              Watchers:
              45 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: