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

Flow is not displayed correctly when sub pipeline is loaded

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None
    • jenkins version 2.89.2, blue ocean 1.5.1

      in our pipeline we load another pipeline like so 

      load '/jenkins/gerrit/Jenkinsfile'

      But in blue ocean it does not display it correctly. It will stop after a parallel flow and not show any other stages. Screen shots provided

      Our flow starts 4 parallel flows and then sequential flows. Sometimes it will show the initial parallel stages in attachment and sometime its just 1 stage

        1. blue ocean.png
          blue ocean.png
          9 kB
        2. jenkins.png
          jenkins.png
          57 kB
        3. Jenkinsfile
          3 kB

          [JENKINS-53089] Flow is not displayed correctly when sub pipeline is loaded

          Vivek Pandey added a comment -

          geraldglennon Thanks for reporting. Please provide a Jenkinsfile that we can use to reproduce it.

          Vivek Pandey added a comment - geraldglennon Thanks for reporting. Please provide a Jenkinsfile that we can use to reproduce it.

          Hi Vivek,

          in the jenkins UI pipline we use the following script to call the jenkinsfile attached

          stage ('Retrieve Pipeline') {
                      node {
                              checkout([$class: 'GitSCM', 
                              branches: [[name: '${GERRIT_BRANCH}']], doGenerateSubmoduleConfigurations: false, 
                              extensions: [
                                       [$class: 'SubmoduleOption', 
                                          disableSubmodules: false, 
                                          parentCredentials: false, 
                                          recursiveSubmodules: true, 
                                          reference: '', 
                                          trackingSubmodules: true
                                       ], 
                                       [$class: 'BuildChooserSetting', 
                                          buildChooser: 
                                              [$class: 'GerritTriggerBuildChooser']]
                                       ], 
                                       submoduleCfg: [], 
                                       userRemoteConfigs: [[refspec: '${GERRIT_REFSPEC}', url: '<link to git repo>']]
                              ])
                              load '/jenkins/gerrit/Jenkinsfile'
                      }
                  }
          

          Gerald Glennon added a comment - Hi Vivek, in the jenkins UI pipline we use the following script to call the jenkinsfile attached stage ( 'Retrieve Pipeline' ) { node { checkout([$class: 'GitSCM' , branches: [[name: '${GERRIT_BRANCH}' ]], doGenerateSubmoduleConfigurations: false , extensions: [ [$class: 'SubmoduleOption' , disableSubmodules: false , parentCredentials: false , recursiveSubmodules: true , reference: '', trackingSubmodules: true ], [$class: 'BuildChooserSetting' , buildChooser: [$class: 'GerritTriggerBuildChooser' ]] ], submoduleCfg: [], userRemoteConfigs: [[refspec: '${GERRIT_REFSPEC}' , url: '<link to git repo>' ]] ]) load '/jenkins/gerrit/Jenkinsfile' } }

            Unassigned Unassigned
            geraldglennon Gerald Glennon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: