← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1787430] [NEW] get_running_builds always returns empty list

 

Public bug reported:

python-jenkins                1.1.0
Jenkins                       2.121.2

print server.get_running_builds()
[]

get_running_builds always returns an empty set


https://github.com/openstack/python-jenkins/blob/master/jenkins/__init__.py#L1437

INFO:root:{u'progress': 29, u'idle': False, u'likelyStuck': False, u'number': 0, u'currentExecutable': None}
INFO:root:{u'progress': 27, u'idle': False, u'likelyStuck': False, u'number': 1, u'currentExecutable': None}
INFO:root:{u'progress': 26, u'idle': False, u'likelyStuck': False, u'number': 3, u'currentExecutable': None}
INFO:root:{u'progress': 21, u'idle': False, u'likelyStuck': False, u'number': 2, u'currentExecutable': None}

This line always evaluates as false since currentExecutable is always None
if executable and 'PlaceholderTask' not in executable.get('_class', ''):

** Affects: python-jenkins
     Importance: Undecided
         Status: New

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

Title:
  get_running_builds always returns empty list

Status in Python Jenkins:
  New

Bug description:
  python-jenkins                1.1.0
  Jenkins                       2.121.2

  print server.get_running_builds()
  []

  get_running_builds always returns an empty set

  
  https://github.com/openstack/python-jenkins/blob/master/jenkins/__init__.py#L1437

  INFO:root:{u'progress': 29, u'idle': False, u'likelyStuck': False, u'number': 0, u'currentExecutable': None}
  INFO:root:{u'progress': 27, u'idle': False, u'likelyStuck': False, u'number': 1, u'currentExecutable': None}
  INFO:root:{u'progress': 26, u'idle': False, u'likelyStuck': False, u'number': 3, u'currentExecutable': None}
  INFO:root:{u'progress': 21, u'idle': False, u'likelyStuck': False, u'number': 2, u'currentExecutable': None}

  This line always evaluates as false since currentExecutable is always None
  if executable and 'PlaceholderTask' not in executable.get('_class', ''):

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


Follow ups