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

3 views
Skip to first unread message

alexis.gauthiez@blablacar.com (JIRA)

unread,
Sep 12, 2018, 5:19:03 AM9/12/18
to jenkinsc...@googlegroups.com
Alexis Gauthiez created an issue
 
Jenkins / Bug JENKINS-53519
"Caught a IllegalStateException traversing the graph for run" using currentBuild.rawBuild.delete()
Issue Type: Bug Bug
Assignee: Unassigned
Components: blueocean-plugin
Created: 2018-09-12 09:18
Priority: Minor Minor
Reporter: Alexis Gauthiez

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

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

alexis.gauthiez@blablacar.com (JIRA)

unread,
Sep 12, 2018, 5:20:02 AM9/12/18
to jenkinsc...@googlegroups.com
Alexis Gauthiez updated an issue
Change By: Alexis Gauthiez
!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@blablacar.com (JIRA)

unread,
Sep 12, 2018, 5:20:02 AM9/12/18
to jenkinsc...@googlegroups.com
Alexis Gauthiez updated an issue
!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 Blue Ocean Activity view . 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@blablacar.com (JIRA)

unread,
Sep 12, 2018, 5:20:02 AM9/12/18
to jenkinsc...@googlegroups.com

alexis.gauthiez@blablacar.com (JIRA)

unread,
Sep 12, 2018, 5:27:02 AM9/12/18
to jenkinsc...@googlegroups.com
Alexis Gauthiez updated an issue
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@blablacar.com (JIRA)

unread,
Nov 23, 2018, 6:05:02 AM11/23/18
to jenkinsc...@googlegroups.com

alexis.gauthiez@blablacar.com (JIRA)

unread,
Jun 13, 2019, 5:41:02 AM6/13/19
to jenkinsc...@googlegroups.com
Alexis Gauthiez updated an issue
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].

sa@mit.edu (JIRA)

unread,
Nov 5, 2019, 11:07:16 AM11/5/19
to jenkinsc...@googlegroups.com
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages