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

EmptyStackException from PipelineNodeGraphVisitor.parallelBranchStart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • blueocean-plugin
    • BlueOcean 1.0.0-b12
    • arctic

      To reproduce,

      make -C .../jenkinsci/parallel-test-executor-plugin/demo run
      

      Log in as admin and you should soon see pipeline ยป master #1 building. Install BlueOcean from the update center. Go to the B.O. display and once #1 has finished, click the start button to schedule build #2. You will soon see a lot of exceptions in the console:

      ... WARNING org.eclipse.jetty.util.log.JavaUtilLog warn
      Error while serving http://localhost:8080/blue/rest/organizations/jenkins/pipelines/pipeline/branches/master/runs/2/nodes/
      java.lang.reflect.InvocationTargetException
      	at ...
      Caused by: java.util.EmptyStackException
      	at java.util.Stack.peek(Stack.java:102)
      	at java.util.Stack.pop(Stack.java:84)
      	at io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeGraphVisitor.parallelBranchStart(PipelineNodeGraphVisitor.java:158)
      	at org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner.visitSimpleChunks(ForkScanner.java:593)
      	at org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner.visitSimpleChunks(ForkScanner.java:551)
      	at io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeGraphVisitor.<init>(PipelineNodeGraphVisitor.java:68)
      	at io.jenkins.blueocean.rest.impl.pipeline.NodeGraphBuilder$NodeGraphBuilderFactory.getInstance(NodeGraphBuilder.java:37)
      	at io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeContainerImpl.<init>(PipelineNodeContainerImpl.java:39)
      	at io.jenkins.blueocean.rest.impl.pipeline.PipelineRunImpl.getNodes(PipelineRunImpl.java:81)
      	... 103 more
      

      and incremental display of build results seems badly broken.

            vivek Vivek Pandey
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: