[JIRA] (JENKINS-58850) Steps from post actions are not visible when used with parallel stages

3 views
Skip to first unread message

alexbuicescu@gmail.com (JIRA)

unread,
Aug 7, 2019, 11:03:02 AM8/7/19
to jenkinsc...@googlegroups.com
Alex Buicescu created an issue
 
Jenkins / Bug JENKINS-58850
Steps from post actions are not visible when used with parallel stages
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: image-2019-08-07-17-51-34-871.png, image-2019-08-07-17-51-57-772.png, log-parallel.txt, log-sequential.txt
Components: blueocean-plugin
Created: 2019-08-07 15:02
Environment: EC2 node: Linux ip-172-31-39-47 4.15.0-1021-aws #21-Ubuntu SMP Tue Aug 28 10:23:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Jenkins ver. 2.176.2

Blue Ocean: 1.18.1 (all plugins are up to date)

Chrome: Version 75.0.3770.142 (Official Build) (64-bit)
Labels: blueocean blueocean-ui
Priority: Minor Minor
Reporter: Alex Buicescu

I'm using declarative pipeline and the steps from the post actions are not visible when there are parallel stages inside stages directive, but they are shown when there are only sequential stages in jenkinsfile. The actions from post are executed because I can see them in the log file, but the steps are simply not visible. You can see from the following 2 jenkinsfiles that only in the 2nd one the echo "hi from post" step is visible

1) This jenkinsfile is not working properly (uses parallel stages) (see attachment log-parallel.txt for logs):


pipeline {
  agent none

  stages {
    stage('Parallel Stages') {
      parallel {
        stage('Stage 1') {
          steps {
            node(label: 'ec2_node_bigger') {
              sh 'echo "hi from 1"'
            }
          }
        }

        stage('Stage 2') {
          steps {
            node(label: 'ec2_node_bigger') {
              sh 'echo "hi from 2"'
            }
          }
        }

      }

    }
    
  }

  post {
    always {
      node(label: 'ec2_node_bigger') {
        sh 'echo "hi from post"'
      }
    }
  }

}

Screenshot from blue ocean interface:

2) This jenkinsfile is working as expected (does not use parallel stages) (see attachment log-sequential.txt for logs):

pipeline {
  agent none

  stages {
    stage('Stage 1') {
      steps {
        node(label: 'ec2_node_bigger') {
          sh 'echo "hi from 1"'
        }
      }
    }

    stage('Stage 2') {
      steps {
        node(label: 'ec2_node_bigger') {
          sh 'echo "hi from 2"'
        }
      }
    }

  }

  post {
    always {
      node(label: 'ec2_node_bigger') {
        sh 'echo "hi from post"'
      }
    }
  }

}

Screenshot from blue ocean interface:

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

alexbuicescu@gmail.com (JIRA)

unread,
Aug 16, 2019, 5:55:01 AM8/16/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages