Issue Type: Bug Bug
Assignee: Patrik Boström
Components: delivery-pipeline-plugin
Created: 22/Mar/15 4:27 PM
Description:

When using the same basic item name for more than one job in different folders, and those items are used in a pipeline, the view is not displayed (Error communicating to server! Server Error)

The stacktrace shows an NPE:

Caused by: java.lang.NullPointerException
	at org.jgrapht.graph.AbstractGraph.assertVertexExist(Unknown Source)
	at org.jgrapht.graph.AbstractBaseGraph$DirectedSpecifics.getEdgeContainer(Unknown Source)
	at org.jgrapht.graph.AbstractBaseGraph$DirectedSpecifics.outDegreeOf(Unknown Source)
	at org.jgrapht.graph.AbstractBaseGraph.outDegreeOf(Unknown Source)
	at se.diabol.jenkins.pipeline.domain.Stage.findAllRunnablePaths(Stage.java:267)
	at se.diabol.jenkins.pipeline.domain.Stage.placeStages(Stage.java:225)
	at se.diabol.jenkins.pipeline.domain.Stage.extractStages(Stage.java:164)
	at se.diabol.jenkins.pipeline.domain.Pipeline.extractPipeline(Pipeline.java:123)
	at se.diabol.jenkins.pipeline.DeliveryPipelineView.getComponent(DeliveryPipelineView.java:323)
	at se.diabol.jenkins.pipeline.DeliveryPipelineView.getPipelines(DeliveryPipelineView.java:293)
	... 90 more

The reason is that ProjectUtil.getAllDownstreamProjects() stores the projects in a map using the simple name as a key. So of all equally named projects only one is retained, so the firstProject is usually not found as vertex in the graph leading to the NPE.

I will create a Pull Request for that.

Environment: 0.8.10
Project: Jenkins
Priority: Major Major
Reporter: Stephan Pauxberger
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to