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

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

      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.

          [JENKINS-44160] Port the "post" behavior to Scripted Pipeline "stage" step

          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.

          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 .

          Liam Newman added a comment -

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

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

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

              Created:
              Updated: