Unexpected behavior from install_plugin()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Jenkins |
New
|
Undecided
|
Unassigned |
Bug Description
While installing a plugin, the plugin appears to install correctly, but when install_plugin() checks if a restart is necessary, the function fails on
response = response_
with an IndexError. It appears that the response coming back from both the install call and the is_restart_required query is ')]}.' for some reason, hence splitting on the colon doesn't do anything and there is no second element to grab.
This issue persists whether executing against a local server or a server running elsewhere. I can ignore the is_restart_required query for now, but the nonsense brackets are still puzzling and perhaps a sign of an issue elsewhere if I can't actually get the expected 'Result: true/false' string.
Edit: This is with Python-Jenkins 1.7.0 and Jenkins 2.249.1.
description: | updated |