← Back to team overview

python-jenkins-developers team mailing list archive

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

 

** Changed in: python-jenkins
     Assignee: Khai Do (zaro0508) => Sorin Sbârnea (sorin-sbarnea)

-- 
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:
  In Progress

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