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

BlueOcean pipeline UI fails to render stages past the first parallel stage after I upgraded the plugins

    Details

    • Similar Issues:
    • Released As:
      1.13.2, 1.14.0

      Description

      Just upgraded to the latest jenkins core and all plugins. Now, we are not seeing most of the stages in our giant pipeline.

      Before:

       

      After:

       

      However, I can see that in the console, all of the stages and steps ran. The problem is just that the UI is not depicting the pipeline correctly.

        Attachments

          Issue Links

            Activity

            Hide
            ifernandezcalvo Ivan Fernandez Calvo added a comment - - edited

            Could you please check if this patch fixes the following behavior? I think it is related too, If you have a main job that triggers a build and wait for the result, you should show the downstream job in the stage, but is not on every case if you use the parallel step, and it never shows if you use the parallel directive in a declarative pipeline

            MainJob 1

            pipeline {
                agent any
                stages {
                    stage('Run Tests') {
                        steps {
                            parallel(
                                'Stage 1': {build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '3')]},
                                'Stage 2': {build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '4')]}
                            )
                        }
                    }
                }
            }
            


            MainJob 2

            pipeline {
                agent any
                stages {
                    stage('Run Tests') {
                        parallel {
                            stage('Stage 1') {
                                steps {
                                   build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '1')]
                                }
                            }
                            stage('Stage 2') {
                                steps {
                                    build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '3')]
                                }
                            }
                        }
                    }
                }
            }
            



            Downstream job

            pipeline {
                agent any
                parameters {
                    string(name: 'VAR', defaultValue: "1")
                }
                stages {
                    stage('Downstream') {
                        steps {
                            echo "NOOP"
                        }
                    }
                }
            }
            
            Show
            ifernandezcalvo Ivan Fernandez Calvo added a comment - - edited Could you please check if this patch fixes the following behavior? I think it is related too, If you have a main job that triggers a build and wait for the result, you should show the downstream job in the stage, but is not on every case if you use the parallel step, and it never shows if you use the parallel directive in a declarative pipeline MainJob 1 pipeline { agent any stages { stage( 'Run Tests' ) { steps { parallel( 'Stage 1' : {build job: 'downstreamJob' , parameters: [string(name: 'VAR' , value: '3' )]}, 'Stage 2' : {build job: 'downstreamJob' , parameters: [string(name: 'VAR' , value: '4' )]} ) } } } } MainJob 2 pipeline { agent any stages { stage( 'Run Tests' ) { parallel { stage( 'Stage 1' ) { steps { build job: 'downstreamJob' , parameters: [string(name: 'VAR' , value: '1' )] } } stage( 'Stage 2' ) { steps { build job: 'downstreamJob' , parameters: [string(name: 'VAR' , value: '3' )] } } } } } } Downstream job pipeline { agent any parameters { string(name: 'VAR' , defaultValue: "1" ) } stages { stage( 'Downstream' ) { steps { echo "NOOP" } } } }
            Hide
            sophistifunk Josh McDonald added a comment -

            AFAIK, If you attempt to build the same downstream job in multiple parallel branches, it will only build once and whichever one is executed first will be the one that gets the link.

            Show
            sophistifunk Josh McDonald added a comment - AFAIK, If you attempt to build the same downstream job in multiple parallel branches, it will only build once and whichever one is executed first will be the one that gets the link.
            Hide
            halkeye Gavin Mogan added a comment -

            Ivan Fernandez Calvo can you open a new Jira issue so we can spend the time investigating properly/doesnt get lost when the original issue gets merged. This ticket is about rendering parallel steps.

            Show
            halkeye Gavin Mogan added a comment - Ivan Fernandez Calvo can you open a new Jira issue so we can spend the time investigating properly/doesnt get lost when the original issue gets merged. This ticket is about rendering parallel steps.
            Hide
            ifernandezcalvo Ivan Fernandez Calvo added a comment - - edited

            agree, This will be another issue, If I launch the same job twice it will be linked for each execution I make and is not.

            I have changed the example to launch the same job with different parameters, in the case of using the parallel step the downstream job is linked in both stages, in the case of use the declarative parallel step they aren't linked.

            I have opened another issue JENKINS-56562

            Show
            ifernandezcalvo Ivan Fernandez Calvo added a comment - - edited agree, This will be another issue, If I launch the same job twice it will be linked for each execution I make and is not. I have changed the example to launch the same job with different parameters, in the case of using the parallel step the downstream job is linked in both stages, in the case of use the declarative parallel step they aren't linked. I have opened another issue JENKINS-56562
            Hide
            sophistifunk Josh McDonald added a comment -

            Fixed (without rollback) in fc3e3a9f5cd13f535d88a173499bb929478f5b1f

            Show
            sophistifunk Josh McDonald added a comment - Fixed (without rollback) in fc3e3a9f5cd13f535d88a173499bb929478f5b1f

              People

              • Assignee:
                sophistifunk Josh McDonald
                Reporter:
                piratejohnny Jon B
              • Votes:
                18 Vote for this issue
                Watchers:
                23 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: