python-jenkins-developers team mailing list archive
-
python-jenkins-developers team
-
Mailing list archive
-
Message #00660
[Bug 1943402] Re: cannot find the master(Build-In Node) node after jenkins v2.307
I see this issue too. The "manage Jenkins" page for my deployment
(v2.326) has a warning which says:
The word "master" is being retired as the term for the main Jenkins process and the built-in node. The main process is now called "controller" and the built-in node is called just "built-in node". The UI has been updated with these changes.
The fix proposed above works for me when I manually patch it in.
--
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:
Confirmed
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