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

UI for downstream jobs launched with 'build' step

    XMLWordPrintable

    Details

    • Sprint:
      Blue Ocean 1.1, Blue Ocean 1.2-beta1, Blue Ocean 1.2-beta2, Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 2
    • Similar Issues:

      Description

      Improvement on roadmap

      This improvement is on the Blue Ocean project roadmap. Check the roadmap page for updates.

      Same pipeline as JENKINS-38337

      stage "Stage 1"
      stage ("Trigger jobs") {
          parallel(
              downstream1: {
                  build 'downstream1'
              },
              downstream2: {
                  build 'downstream2'
              }
          )
      }
      

      In the logs, we see things like Starting building: downstream2 #3, however unlike the classic console, this is not a link, so you can't browse to the other build.

       

      Out of scope: 

      When the "don't wait" mode is used, there is no link to the resultant downstream job, so no need to link it back  ( ie build job: 'downer', wait: false)

       

       

        Attachments

          Issue Links

            Activity

            Hide
            stevenfoster Steven Foster added a comment -

            Is there a way to aggregate the triggered builds within a parallel stage? I'm launching 12 or so builds as a parallel stage (the whole build is basically just a dummy/launchpad for other builds) and clicking each individual stage to get the downstream link is very slightly bothersome

            Show
            stevenfoster Steven Foster added a comment - Is there a way to aggregate the triggered builds within a parallel stage? I'm launching 12 or so builds as a parallel stage (the whole build is basically just a dummy/launchpad for other builds) and clicking each individual stage to get the downstream link is very slightly bothersome
            Hide
            janbernloehr Jan Bernlöhr added a comment -

            How can we enabled this feature? We are using BlueOcean 1.82 with declaraitve pipelines and do not see links.

             

            stage('launch builds') {
                parallel {
                    stage('stereo/offline') {
                        steps {
                            build job: 'rebuild',
                        parameters:[
                                string(name: 'CONFIG_TO_BUILD', value: 'stereo/offline')
                            ],
                        propagate: true,
                        wait: true
                        }
                    }
                    stage('second_config') {
                        steps {
                            build job: 'rebuild',
                        parameters:[
                                string(name: 'CONFIG_TO_BUILD', value: 'second_config')
                            ],
                        propagate: true,
                        wait: true
                        }
                    }
                }
            }
            

            The invoked job 'rebuild' is also a declarative pipeline.

            Show
            janbernloehr Jan Bernlöhr added a comment - How can we enabled this feature? We are using BlueOcean 1.82 with declaraitve pipelines and do not see links.   stage( 'launch builds' ) { parallel { stage( 'stereo/offline' ) { steps { build job: 'rebuild' , parameters:[ string(name: 'CONFIG_TO_BUILD' , value: 'stereo/offline' ) ], propagate: true , wait: true } } stage( 'second_config' ) { steps { build job: 'rebuild' , parameters:[ string(name: 'CONFIG_TO_BUILD' , value: 'second_config' ) ], propagate: true , wait: true } } } } The invoked job 'rebuild' is also a declarative pipeline.
            Hide
            consek Jan Kacik added a comment -

            It is not working for parallel stages in declarative pipeline. 

            Show
            consek Jan Kacik added a comment - It is not working for parallel stages in declarative pipeline. 
            Hide
            andreimuresianu Andrei Muresianu added a comment -

            It is still a problem in December 2018.

            stage('Test Stack') {
                parallel {
                    stage('Functional Tests') {
                        steps {
                            build job: 'TEST-functional'
                        }
                    }
            
                    stage('View Tests') {
                        steps {
                            build job: 'TEST-view'
                        }
                    }
                }
                post {
                    failure {
                        echo 'Some of the functional/view tests failed. Tearing down the stack.'
                        build job: 'TEST-teardown'
                    }
                }
            } 

            None of TEST-functional, TEST-view, TEST-teardown are visible in BlueOcean (it looks like even the echo message got lost)

            However, the console output references all of the jobs - no issues there.

             

             

            Show
            andreimuresianu Andrei Muresianu added a comment - It is still a problem in December 2018. stage( 'Test Stack' ) { parallel { stage( 'Functional Tests' ) { steps { build job: 'TEST-functional' } } stage( 'View Tests' ) { steps { build job: 'TEST-view' } } } post { failure { echo 'Some of the functional/view tests failed. Tearing down the stack.' build job: 'TEST-teardown' } } } None of TEST-functional, TEST-view, TEST-teardown are visible in BlueOcean (it looks like even the echo message got lost) However, the console output references all of the jobs - no issues there.    
            Hide
            mbolesta Mike Bolesta added a comment -

            I'm also seeing this issue when the triggered build is inside a parallel stage.

            Show
            mbolesta Mike Bolesta added a comment - I'm also seeing this issue when the triggered build is inside a parallel stage.

              People

              • Assignee:
                sophistifunk Josh McDonald
                Reporter:
                vlatombe Vincent Latombe
              • Votes:
                31 Vote for this issue
                Watchers:
                54 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: