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

"Caught a IllegalStateException traversing the graph for run" using currentBuild.rawBuild.delete()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None

      Hey there,

      We have builds of a multibranch pipeline job which remove themselves with currentBuild.rawBuild.delete(). When accessing the multibranch pipeline job "Activity" or "Branches" views on the Blue Ocean interface, the builds or branches list remain empty and the plugin throws a IllegalStateException per entry:

      It's logged as severe "Caught a IllegalStateException traversing the graph for run <build name>" (see in the source code). The legacy interface behaves as expected.

      After creating a new branch with the same pipeline script but without the currentBuild.rawBuild.delete() mechanism, I noticed that the branch job itself is not subject to the IllegalStateException (but still both views are empty since other builds/branches throw).

      Note that a topic related to that issue has been created on the Jenkins Users Google Group.

            Unassigned Unassigned
            agauthiez Alexis Gauthiez
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: