Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Projects in Folders not listed #53

Open
dmoebus opened this issue Apr 21, 2016 · 3 comments
Open

Projects in Folders not listed #53

dmoebus opened this issue Apr 21, 2016 · 3 comments

Comments

@dmoebus
Copy link

dmoebus commented Apr 21, 2016

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.

@ericLemanissier
Copy link

+1

@eddiriarte
Copy link

eddiriarte commented Aug 31, 2016

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

@macghriogair
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants