Jenkins New Node slave Architecture Multi-Node release Task
How do I use the slave schema in jenkins?
When using jenkins, due to the single-node architecture, it can not meet a variety of requirements, such as test environment and production environment, maybe your test environment is a set of environment, another production environment is another set of environment, in order to save nodes, you only need to open a slave node in your previous jenkins environment to configure and use this jenkins-slave to publish your tasks, which is also very convenient for operation and maintenance. This is based on each development environment to achieve, here is only my personal experience, for reference only.
This is divided into one step: open your jenkins, open system management, find node management, and create a new node.
This is the configuration of the added node
Expand your slave node according to the needs of the project. When publishing tasks, you only need to select the tag and use the slave node to publish.
Select the host you synchronize, specify the working directory, select the connection method, and log in through the password to authenticate.
Be sure to install the jdk environment here, because jenkins is written in java, so configure a jdk, configure the environment variables as much as possible, and then deploy docker,maven and other tools according to your online environment requirements, so that you can connect and use them.