• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None
    • Jenkins ver. 2.138.2
      Pipeline: Model API 1.3.2

      At the moment all pipeline post steps will be displayed in the latest defined stage. For example:

      pipeline {
          agent;
          stages {
              stage('first stage') { ... }        
              stage('last stage') { ... }
          }
          post {
              always { echo 'Hello World' }
          }
      }
      

      The echo step will be assigned to the "last stage". Would be nice to have a new, "virtual" stage e.g. ("post actions") for all that things.

          [JENKINS-54605] Default stage for post section

          Andrew Bayer added a comment -

          We do actually generate a stage to hold post build actions, but Blue Ocean rolls them up into the last stage executed. I'm moving this to blueocean-plugin so they can go into more detail on why.

          Andrew Bayer added a comment - We do actually generate a stage to hold post build actions, but Blue Ocean rolls them up into the last stage executed. I'm moving this to blueocean-plugin so they can go into more detail on why.

          abayer thenk you

          Kamil Grabowski added a comment - abayer thenk you

          efo plo added a comment -

          For some reason, in our case the Blue Ocean plugin has the `post` actions added to each and every stage that does not have its own `post` actions defined. So we're seeing these on much more than one stage.

          efo plo added a comment - For some reason, in our case the Blue Ocean plugin has the `post` actions added to each and every stage that does not have its own `post` actions defined. So we're seeing these on much more than one stage.

          Ian Panzer added a comment -

          We are facing this issue as well. While it's not breaking anything, it is rather annoying. Any update?

          Ian Panzer added a comment - We are facing this issue as well. While it's not breaking anything, it is rather annoying. Any update?

            Unassigned Unassigned
            y3ti Kamil Grabowski
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: