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
Use this class to manipulate agents managed by a Jenkins master
- Parameters
api (
/utils/jenkins_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.