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

multibranchpipeline.branchNames is not updated when new branch is created (or deleted)

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None
    • Blue Ocean - Candidates

      If someone navigates to Multibranch pipeline that has no branches yet, SSE events do not re-render the page once said branches have runs start on them.

       

      This exposes a bigger issue for plugins that may use branchNames(on multibranch pipeline object. Re-rendering will not happen properly as that property is not updated. Branch pipelines are still being created/deleted and SSE events come in for them, but the top level multibranchpipeline is not updated.

       

      To fix this, when branch create/delete SSE event comes in, multibranch pipeline also needs to be refetched. 

          [JENKINS-44549] multibranchpipeline.branchNames is not updated when new branch is created (or deleted)

          Ivan Meredith created issue -
          James Dumay made changes -
          Epic Link New: JENKINS-43952 [ 181484 ]
          James Dumay made changes -
          Sprint New: Blue Ocean 1.1 [ 321 ]

          Michael Neale added a comment -

          oh good one. I have noticed this as well now you mention it. 

          Michael Neale added a comment - oh good one. I have noticed this as well now you mention it. 
          James Dumay made changes -
          Sprint Original: Blue Ocean 1.1 [ 321 ] New: Blue Ocean 1.2 [ 326 ]
          James Dumay made changes -
          Sprint Original: Blue Ocean 1.2 [ 326 ] New: Blue Ocean 1.3 [ 296 ]
          James Dumay made changes -
          Rank New: Ranked lower
          James Dumay made changes -
          Sprint Original: Blue Ocean 1.3 [ 296 ] New: Blue Ocean 1.4 [ 311 ]
          James Dumay made changes -
          Rank New: Ranked higher
          James Dumay made changes -
          Sprint Original: Blue Ocean 1.4 [ 311 ] New: Blue Ocean 1.3-beta-1 [ 326 ]
          James Dumay made changes -
          Rank New: Ranked lower

            imeredith Ivan Meredith
            imeredith Ivan Meredith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: