calculate node
The best practice of Jenkins is to let the master only do scheduling tasks, and all other tasks such as construction are executed on the agent (computing node).
After installing different plug-ins, Jenkins can support static and dynamic types of nodes. The so-called static refers to the need for us to maintain manually, for example:
create, go online, and go offline corresponding nodes. The so-called dynamic, it is possible according to established rules, automatically creating, destroying nodes;
to Kubernetes plug-in , for example, it is created by dynamically
and destroy Pod to provide operational node.
protocol
Regardless of whether it is a dynamic or static node, a specific protocol is required to link the agent and the master. Jenkins can establish links through the following protocols:
View the node list:jcli agent list
Static node
jcli agent create macos
jcli agent launch macos
Currently, only JNLP type node creation is supported. In addition, if you need to connect to Jenkins through an HTTP proxy, it is temporarily not supported.
Delete node
The name of the given node can be deleted:jcli agent delete macos