redmine_jenkins icon indicating copy to clipboard operation
redmine_jenkins copied to clipboard

Projects in Folders not listed

Open dmoebus opened this issue 8 years ago • 3 comments

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.

dmoebus avatar Apr 21 '16 11:04 dmoebus

+1

ericLemanissier avatar Aug 25 '16 09:08 ericLemanissier

+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...

eddiriarte avatar Aug 31 '16 09:08 eddiriarte

+1

macghriogair avatar Dec 19 '16 08:12 macghriogair