Unexpected behavior from install_plugin()

Bug #1897909 reported by John Walker
6
This bug affects 1 person
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_str.split(':')[1].strip().lower() == 'true'

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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.