redmine_jenkins
redmine_jenkins copied to clipboard
Projects in Folders not listed
When configuring Jenkins in Redmine, projects in folder are not shown. Example: In Jenkins we have the following structure:
Project 01 Project 02 | Project 02.01 | Project 02.02 Project 03
In Redmine we can select only Project 01, Project 02 and Project 03 but not Project 02.01 or Project 02.02... Is there a way to fix this issue?
Thank you.
+1
+1
...actually seems to be an error at arangamani/jenkins_api_client
i've changed the file jenkins_api_client/lib/jenkins_api_client/job.rb # line 608
(in vendor gems) with:
def list_all
list = []
response_json = @client.api_get_request("", "tree=jobs[name,jobs[name]]")["jobs"]
response_json.each do |item|
if item.key?("jobs")
item["jobs"].each do |childjob|
name = item["name"] + "/job/" + childjob["name"]
list << name
end
else
list << item["name"]
end
end
# puts list
return list.sort
end
and so i get jobs at level 1 und 2... not the very best solution, but this is my first intent with ruby...
+1