← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1943402] Re: cannot find the master(Build-In Node) node after jenkins v2.307

 

Ha it's 2022, and 1.7.0 was in 2020. well that explains that, just need
a release cut

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

Title:
  cannot find the master(Build-In Node) node after jenkins v2.307

Status in Python Jenkins:
  Fix Released

Bug description:
  File "/usr/local/lib/python2.7/dist-packages/jenkins/__init__.py", line 1453, in get_running_builds
      info = self.get_node_info(node_name, depth=2)
    File "/usr/local/lib/python2.7/dist-packages/jenkins/__init__.py", line 1513, in get_node_info
      raise JenkinsException('node[%s] does not exist' % name)
  jenkins.JenkinsException: node[Built-In Node] does not exist

  I have fixed this bug by myself. it is as follows,
  edit file: /usr/local/lib/python2.7/dist-packages/jenkins/__init__.py,

  1, in the 1448 line, change
  if node['name'] == 'master':
  into
  if node['name'] == 'master' or node['name'] == "Built-In Node":

  2, in the 1512 line, in the beginning of the get_node_info function, add the following codes,
  if name == "Built-In Node":
      name = '(master)'

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



References