python-jenkins-developers team mailing list archive
-
python-jenkins-developers team
-
Mailing list archive
-
Message #00670
[Bug 1943402] Re: cannot find the master(Build-In Node) node after jenkins v2.307
This bug is marked as fix released but the only place I can find the fix
is in the master branch of the repository, v1.7.0 and 1.8.0.0a1 don't
include this fix for some reason even though they were released after
this fix was merged.
--
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