[JIRA] (JENKINS-54605) Default stage for post section

4 views
Skip to first unread message

kamil.grabowski@gmail.com (JIRA)

unread,
Nov 13, 2018, 7:46:02 AM11/13/18
to jenkinsc...@googlegroups.com
Kamil Grabowski created an issue
 
Jenkins / Improvement JENKINS-54605
Default stage for post section
Issue Type: Improvement Improvement
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2018-11-13 12:45
Environment: Jenkins ver. 2.138.2
Pipeline: Model API 1.3.2
Priority: Minor Minor
Reporter: Kamil Grabowski

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

andrew.bayer@gmail.com (JIRA)

unread,
Nov 13, 2018, 3:31:03 PM11/13/18
to jenkinsc...@googlegroups.com
Andrew Bayer assigned an issue to Unassigned
 

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.

Change By: Andrew Bayer
Component/s: blueocean-plugin
Component/s: pipeline-model-definition-plugin
Assignee: Andrew Bayer

kamil.grabowski@gmail.com (JIRA)

unread,
Nov 15, 2018, 3:09:02 AM11/15/18
to jenkinsc...@googlegroups.com

eplotkin@drivenets.com (JIRA)

unread,
Dec 25, 2018, 4:00:02 AM12/25/18
to jenkinsc...@googlegroups.com
efo plo commented on Improvement JENKINS-54605

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@anritsu.com (JIRA)

unread,
Mar 3, 2020, 12:26:03 PM3/3/20
to jenkinsc...@googlegroups.com

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

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages