get all downstream jobs

37 views
Skip to first unread message

justine....@gmail.com

unread,
Oct 23, 2015, 9:20:07 AM10/23/15
to Jenkins Developers
I'm working with Build Flow Plugin. What I'm trying to achieve is getting list of all jobs and their numbers triggered by BuildFlow job. I can not find any method in BuildFlow class that returns such a list. Since now i can get object of Flow run class:
def bfJob = Jenkins.getInstance().getItemByFullName("BuildFlowJob").getBuildByNumber(10)
But what to do next? When I call:
bfJob.getJobsGraph()
I see all downstream jobs and edges and etc., I'm shure that there is a better method than than converting it to string and parsing.
Any help will be appreciated.
Reply all
Reply to author
Forward
0 new messages