get_running_builds returns error due to missing array.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Jenkins |
New
|
Undecided
|
Unassigned |
Bug Description
In Jenkins-2.32.3, when running get_running_
for executor in info['executors']:
if executable and 'PlaceholderTask' not in executable.
return builds
>>> info_master = server.
As seen below, the currentExecutable key in the second executor (number: 1) is not an array, but rather a string "None", causing the build.append to fail and return an error.
>>> info_master[
[{u'likelyStuck': False, u'number': 0, u'idle': False, u'currentWorkUnit': {}, u'progress': 92, u'currentExecut
ERROR:
>>> server.
<bound method Jenkins.
>>> server.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Jenkins' object has no attribute 'get_running_
>>> server.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
build_number = executable[
KeyError: 'number'
>>>