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

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

    • 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.

          [JENKINS-53519] "Caught a IllegalStateException traversing the graph for run" using currentBuild.rawBuild.delete()

          Alexis Gauthiez created issue -
          Alexis Gauthiez made changes -
          Attachment New: Blue Ocean Activity view.png [ 44442 ]
          Alexis Gauthiez made changes -
          Description Original: 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:
           !Capture d’écran 2018-09-12 à 11.09.08.png|thumbnail!

          It's logged as severe "Caught a IllegalStateException traversing the graph for run {{<build name>}}" ([see in the source code|https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeGraphVisitor.java#L113]).

          After creating a new branch with the same pipeline script but 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|https://groups.google.com/forum/#!topic/jenkinsci-users/-tGHslFXuFw].
          New:  !Blue Ocean Activity view.png|thumbnail! 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:
           !Capture d’écran 2018-09-12 à 11.09.08.png|thumbnail!

          It's logged as severe "Caught a IllegalStateException traversing the graph for run {{<build name>}}" ([see in the source code|https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeGraphVisitor.java#L113]).

          After creating a new branch with the same pipeline script but 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|https://groups.google.com/forum/#!topic/jenkinsci-users/-tGHslFXuFw].
          Alexis Gauthiez made changes -
          Description Original:  !Blue Ocean Activity view.png|thumbnail! 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:
           !Capture d’écran 2018-09-12 à 11.09.08.png|thumbnail!

          It's logged as severe "Caught a IllegalStateException traversing the graph for run {{<build name>}}" ([see in the source code|https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeGraphVisitor.java#L113]).

          After creating a new branch with the same pipeline script but 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|https://groups.google.com/forum/#!topic/jenkinsci-users/-tGHslFXuFw].
          New: 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:
           !Blue Ocean Activity view.png|thumbnail!

          It's logged as severe "Caught a IllegalStateException traversing the graph for run {{<build name>}}" ([see in the source code|https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeGraphVisitor.java#L113]).

          After creating a new branch with the same pipeline script but 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|https://groups.google.com/forum/#!topic/jenkinsci-users/-tGHslFXuFw].
          Alexis Gauthiez made changes -
          Description Original: 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:
           !Blue Ocean Activity view.png|thumbnail!

          It's logged as severe "Caught a IllegalStateException traversing the graph for run {{<build name>}}" ([see in the source code|https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeGraphVisitor.java#L113]).

          After creating a new branch with the same pipeline script but 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|https://groups.google.com/forum/#!topic/jenkinsci-users/-tGHslFXuFw].
          New: 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:
           !Blue Ocean Activity view.png|thumbnail!

          It's logged as severe "Caught a IllegalStateException traversing the graph for run {{<build name>}}" ([see in the source code|https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeGraphVisitor.java#L113]). The legacy interface behaves as expected.

          After creating a new branch with the same pipeline script but 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|https://groups.google.com/forum/#!topic/jenkinsci-users/-tGHslFXuFw].
          Alexis Gauthiez made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Alexis Gauthiez made changes -
          Description Original: 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:
           !Blue Ocean Activity view.png|thumbnail!

          It's logged as severe "Caught a IllegalStateException traversing the graph for run {{<build name>}}" ([see in the source code|https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeGraphVisitor.java#L113]). The legacy interface behaves as expected.

          After creating a new branch with the same pipeline script but 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|https://groups.google.com/forum/#!topic/jenkinsci-users/-tGHslFXuFw].
          New: 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:
           !Blue Ocean Activity view.png|thumbnail!

          It's logged as severe "Caught a IllegalStateException traversing the graph for run {{<build name>}}" ([see in the source code|https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeGraphVisitor.java#L113]). 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|https://groups.google.com/forum/#!topic/jenkinsci-users/-tGHslFXuFw].

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

              Created:
              Updated: