python-jenkins-developers team mailing list archive
-
python-jenkins-developers team
-
Mailing list archive
-
Message #00520
[Bug 1771319] Re: get_info() ignores query argument
Yes, this is more or less what I had as a fix in mind. For the meantime,
we've frozen the dependency at 0.4.16 where the get_info() method works
as expected.
--
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/1771319
Title:
get_info() ignores query argument
Status in Python Jenkins:
New
Bug description:
With python-jenkins >= 1.0.0, the parameter 'query' of the get_info()
method is ignored:
url = '/'.join((item, INFO)).lstrip('/')
url = quote(url)
if query:
url += query
try:
return json.loads(self.jenkins_open(
requests.Request('GET', self._build_url(INFO))
))
except (req_exc.HTTPError, BadStatusLine):
....
The query parameter is used to construct the url which isn't passed to the actual request. As a result, all calls to get_info() return only the mninimal job fields.
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1771319/+subscriptions
References