Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Jenkins New Node slave Architecture Multi-Node release Task

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report