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

Blue ocean branches page crashes when branch does not have a last run date

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • blueocean-plugin
    • jenkins 2.32.1
      blue ocean 1.0.0-b14
    • tethys, pannonian

      When opening the branches view of blue ocean, the page will not render throwing a javascript error if a branch does not have a last run date set:

      jenkins-js-extension.js:31756 Uncaught TypeError: Cannot read property 'id' of null
          at Branches.render (jenkins-js-extension.js:31756)
          at Object.allowStateChanges (jenkins-js-extension.js:11157)
          at Reaction.<anonymous> (jenkins-js-extension.js:9174)
          at trackDerivedFunction (jenkins-js-extension.js:11424)
          at Reaction.track (jenkins-js-extension.js:11753)
          at reactiveRender (jenkins-js-extension.js:9170)
          at Branches.initialRender (jenkins-js-extension.js:9164)
          at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (blueocean.js:81115)
          at ReactCompositeComponentWrapper._renderValidatedComponent (blueocean.js:81138)
          at ReactCompositeComponentWrapper.performInitialMount (blueocean.js:80680)
      

      See attached screen capture of debugger console:

          [JENKINS-40740] Blue ocean branches page crashes when branch does not have a last run date

          Jesse Redl created issue -
          James Dumay made changes -
          Component/s Original: branch-api-plugin [ 18621 ]
          James Dumay made changes -
          Assignee Original: Stephen Connolly [ stephenconnolly ]
          James Dumay made changes -
          Epic Link New: JENKINS-35742 [ 171802 ]
          James Dumay made changes -
          Sprint New: kraken [ 166 ]

          James Dumay added a comment -

          Thanks for reporting jredl

          James Dumay added a comment - Thanks for reporting jredl
          James Dumay made changes -
          Sprint Original: kraken [ 166 ] New: christmas [ 176 ]
          James Dumay made changes -
          Assignee New: Ivan Meredith [ imeredith ]
          James Dumay made changes -
          Priority Original: Minor [ 4 ] New: Critical [ 2 ]
          James Dumay made changes -
          Sprint Original: christmas [ 176 ] New: tethys [ 161 ]
          James Dumay made changes -
          Rank New: Ranked higher

            imeredith Ivan Meredith
            jredl Jesse Redl
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: