python-jenkins-developers team mailing list archive
-
python-jenkins-developers team
-
Mailing list archive
-
Message #00432
[Bug 1685575] [NEW] Get Job Info by Pattern should use fullname
Public bug reported:
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.
** Affects: python-jenkins
Importance: Undecided
Status: New
--
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:
New
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
Follow ups