Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37576

Provide rest API for finding job details by job name

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None

      Currently, in order to find job information by job name, somebody would need to query REST API for all jobs and then find required job in list. This is expensive operation on Jenkins instances that has thousands of jobs - the returned list will be huge with a lot of information which is not relevant for required operation. Limiting data with "?tree=" option doesn't help much because it will still contain all jobs and their urls.

      I've tried to use "Find job" AJAX call that is used by search box, but this search doesn't operate on job name, but operate on job display name.

      Having a special REST call to retrieve job details by job name would be great to have, especially for large Jenkins instances.

      Note: I am maintainer of Jenkinsapi python library (https://github.com/pycontribs/jenkinsapi)

            Unassigned Unassigned
            lechat Aleksey Maksimov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: