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

Port the "post" behavior to Scripted Pipeline "stage" step

    Details

    • Similar Issues:

      Description

      One of the great features in Declarative Pipeline is the post section for stage sections. Many users have mentioned how much easier it is to use than Scripted Piepline's try-catch blocks.

      Now that stage in Scripted Pipeline takes a block, it seems like adding post would be feasible. The exact implementation might require adding a steps section as well, but it would be a huge improvement.

        Attachments

          Activity

          Hide
          abayer Andrew Bayer added a comment -

          I don't think this is gonna happen. I'll leave this open for a bit, but post relies on a lot of Declarative-specific logic that'd be hard to integrate into stage.

          Show
          abayer Andrew Bayer added a comment - I don't think this is gonna happen. I'll leave this open for a bit, but post relies on a lot of Declarative-specific logic that'd be hard to integrate into stage .
          Hide
          bitwiseman Liam Newman added a comment -

          Andrew Bayer  Agreed. Declarative exists for a reason, porting declarative functionality to scripted is low priority at best.

          Show
          bitwiseman Liam Newman added a comment - Andrew Bayer   Agreed. Declarative exists for a reason, porting declarative functionality to scripted is low priority at best.

            People

            • Assignee:
              Unassigned
              Reporter:
              bitwiseman Liam Newman
            • Votes:
              14 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

              • Created:
                Updated: