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

Handle declarative pipeline preparatory steps and postBuild stage

    XMLWordPrintable

Details

    • pacific, atlantic, 1.0-b05/b-06, indian, arctic, tasman, frank

    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

            jamesdumay James Dumay added a comment - - edited

            vivek 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

            jamesdumay James Dumay added a comment - - edited vivek 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
            jamesdumay James Dumay added a comment -

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

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: