@@ -0,0 +1,959 @@
+package org.jenkinsci.plugins.ghprb.downstreambuilds;%0A%0Aimport java.util.Iterator;%0Aimport java.util.Set;%0A%0Aimport org.jgrapht.DirectedGraph;%0A%0Aimport com.cloudbees.plugins.flow.FlowRun;%0Aimport com.cloudbees.plugins.flow.FlowRun.JobEdge;%0A%0Aimport hudson.model.AbstractBuild;%0A%0A/**%0A * @author mdelapenya (Manuel de la Pe%C3%B1a)%0A */%0Apublic class DownstreamBuildFlowManager extends BaseDownstreamBuildManager %7B%0A%0A%09public DownstreamBuildFlowManager(AbstractBuild build) %7B%0A%09%09super(build);%0A%09%7D%0A%0A%09@Override%0A%09public String calculateBuildUrl() %7B%0A%09%09FlowRun flowRun = (FlowRun) build;%0A%0A%09%09DirectedGraph directedGraph = flowRun.getJobsGraph();%0A%0A%09%09Set%3CJobEdge%3E edgeSet = directedGraph.edgeSet();%0A%0A%09%09Iterator%3CJobEdge%3E iterator = edgeSet.iterator();%0A%0A%09%09StringBuilder sb = new StringBuilder();%0A%0A%09%09while (iterator.hasNext()) %7B%0A%09%09%09JobEdge jobEdge = iterator.next();%0A%0A%09%09%09sb.append(%22%5Cn%22);%0A%09%09%09sb.append(%22%5Ct%22);%0A%09%09%09sb.append(jobEdge.getTarget().getBuildUrl());%0A%09%09%7D%0A%0A%09%09return sb.toString();%0A%09%7D%0A%0A%7D

Implement BuildFlow build url calculation