pyjen.node module
Declarations for the abstraction of a Jenkins build agent
- class pyjen.node.Node(api)[source]
Bases:
object
Wrapper around a Jenkins build agent (aka: Node) configuration
See
find_node()
for more details- Parameters
api (JenkinsAPI) – Pre-initialized connection to the Jenkins REST API
- toggle_offline(message=None)[source]
Toggles the online status of this Node
If the current state of this Node is “offline” it will be toggled to “online” and vice-versa.
- Parameters
message (str) – optional descriptive message explaining the reason this node has been taken offline.