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

Handle declarative pipeline preparatory steps and postBuild stage

    XMLWordPrintable

    Details

    • Sprint:
      pacific, atlantic, 1.0-b05/b-06, indian, arctic, tasman, frank
    • Similar Issues:

      Description

      In Kyoto there is preparatory steps that get executed and postBuild stapes get executed as finally block.

      • Preparatory steps
        • Prefix all steps from it over to next stage
      • postBuild stage
        • Append all postBuild steps to the last executed stage's steps

        Attachments

          Issue Links

            Activity

            Hide
            jamesdumay James Dumay added a comment - - edited

            Vivek Pandey we should perform the same heuristic for Pipeline script steps.

            For example:

            node {
              sh 'echo "foo"'
              stage ("first") {
                sh 'echo "bar"'
              }
              stage ("second") {
                sh 'echo "baz"'
              }
              sh 'echo "cool"'
            }
            

            sh 'echo "foo"' would be put at the top of the first stage and sh 'echo "cool"' appended to the bottom of the second stage

            Show
            jamesdumay James Dumay added a comment - - edited Vivek Pandey we should perform the same heuristic for Pipeline script steps. For example: node { sh 'echo "foo" ' stage ( "first" ) { sh 'echo "bar" ' } stage ( "second" ) { sh 'echo "baz" ' } sh 'echo "cool" ' } sh 'echo "foo"' would be put at the top of the first stage and sh 'echo "cool"' appended to the bottom of the second stage
            Hide
            jamesdumay James Dumay added a comment -

            Marked as blocker as it is keeping other PRs open in the OSS team

            Show
            jamesdumay James Dumay added a comment - Marked as blocker as it is keeping other PRs open in the OSS team

              People

              • Assignee:
                vivek Vivek Pandey
                Reporter:
                vivek Vivek Pandey
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: