Skip to content

Commit

Permalink
#81: Includes Multibranch Pipelines to work like folders.
Browse files Browse the repository at this point in the history
  • Loading branch information
Khang Yeen Lee authored and Khang Yeen Lee committed Jan 8, 2018
1 parent e8de95f commit f25713c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions JenkinsTray/BusinessComponents/JenkinsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public List<Project> GetProjects(XmlNodeList jobElements, Server server)
var xml = new XmlDocument();
xml.LoadXml(xmlStr);
var nodes = xml.SelectNodes("/folder/job");
if (nodes.Count == 0)
{
nodes = xml.SelectNodes("/workflowMultiBranchProject/job");
}
projects.AddRange(GetProjects(nodes, server));
}
else
Expand Down

0 comments on commit f25713c

Please sign in to comment.