← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1685575] Re: Get Job Info by Pattern should use fullname

 

Reviewed:  https://review.opendev.org/c/jjb/python-jenkins/+/821781
Committed: https://opendev.org/jjb/python-jenkins/commit/dc2b9447de6fefa716dab5c64a197b55ca461fc5
Submitter: "Zuul (22348)"
Branch:    master

commit dc2b9447de6fefa716dab5c64a197b55ca461fc5
Author: Jim Wisniewski <wisnij@xxxxxxxxx>
Date:   Tue Dec 14 18:17:53 2021 -0500

    Use fullname in get_job_info_regex
    
    Use full job name in `get_job_info_regex` instead of just the name, so
    that matches will work in folders as well.
    
    Closes-Bug: 1685575
    Change-Id: I97ba8ca004387b376a511ba52fc9fdd2aeb98a63


** Changed in: python-jenkins
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Python
Jenkins Developers, which is subscribed to Python Jenkins.
https://bugs.launchpad.net/bugs/1685575

Title:
  Get Job Info by Pattern should use fullname

Status in Python Jenkins:
  Fix Released

Bug description:
  get_job_info_regex should use fullname instead of name otherwise it
  will fail if the matched job is inside a folder.

  For example, given the above structure:

  job1
  frontend/
    front-build
    front-deploy
  job2

  If we execute this code:

  jobs = server.get_job_info_regex(pattern='front', folder_depth=None)
  We will get the following error:

  jenkins.NotFoundException: Requested item could not be found
  Because we're not sending the folder name to _get_job_folder.

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1685575/+subscriptions



References