I just tested with Jenkins ver 1.532.2 and ver 1.643 and both methods
worked fine for me.  If your looking for the info on whether the slaves
are enabled or disabled then the attribute from get_node_info method is
'offline'.  Offline=true mean slave is disabled.

My Env:
 * Jenkins 1.532.2 on Ubuntu linux, Jenkins 1.643 on OSX
 * Python ver 3.4
 * python-jenkins ver 0.4.12

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

Title:
  The methods enable_node and disable_node has no effect

Status in Python Jenkins:
  Incomplete

Bug description:
  Hello,

  I am currently building a software able to manage Jenkins work with your 
Python API, and I want to be able to disable a node when I don't need it for a 
moment, to reduce the resources needed by Jenkins.
  For that, I have try to use the method enable_node and disable_node, but when 
i want to check if the node is actually enable or disable, I do not see any 
difference.

  Here is a minimal python code to check the behavior that I have tried to 
describe previously
  ```
  import jenkins

  nodeName = "my_node"
  server = jenkins.Jenkins(JENKINS_LOCALHOST_URL)

  server.create_node(nodeName)
  print(server.get_node_info(nodeName))

  server.enable_node(nodeName)
  print(server.get_node_info(nodeName))

  server.disable_node(nodeName)
  print(server.get_node_info(nodeName))
  ```

  Maybe the information is available somewhere else.

  I use the python version 3.5 and Jenkins ver. 1.643

  Thank you beforehand for your help.

  Best regards,
  Xavier

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

-- 
Mailing list: https://launchpad.net/~python-jenkins-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~python-jenkins-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to