← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1897909] Re: Unexpected behavior from install_plugin()

 

** Description changed:

  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.

-- 
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/1897909

Title:
  Unexpected behavior from install_plugin()

Status in Python Jenkins:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1897909/+subscriptions


References