Reviewed:  https://review.opendev.org/c/jjb/python-jenkins/+/823047
Committed: 
https://opendev.org/jjb/python-jenkins/commit/d1e469649574883bc531d35fb3aee207f45c15a5
Submitter: "Zuul (22348)"
Branch:    master

commit d1e469649574883bc531d35fb3aee207f45c15a5
Author: Michael Still <mi...@stillhq.com>
Date:   Tue Dec 28 17:02:57 2021 +1100

    Handle new master naming in Jenkins post v2.307.
    
    Closes-Bug: #1943402
    Change-Id: I6789f6af325f2c104adb91ac7159e3734f71029f


** Changed in: python-jenkins
       Status: In Progress => Fix Released

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


-- 
Mailing list: https://launchpad.net/~python-jenkins-developers
Post to     : python-jenkins-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~python-jenkins-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to