当前位置:网站首页>2022-07-18 Jenkins deployment
2022-07-18 Jenkins deployment
2022-07-22 15:06:00 【Emperor Zunwu world】
Catalog
master Nodes and agent Node description :
Explanation of node diagram and sequence diagram :
Abstract :
Use jenkins Do internal ci, The reason lies in jenkins The simplicity and process coding and documentation are convenient for version control and tracking of the process itself .
This article explains how to deploy jenkins Of master Nodes and agent node
jenkins working principle :
master Nodes and agent Node description :
- master node : namely jenkins Service itself , By default 8080 Port starts a website service
- agent node : Actual work node , Accept master Tasks distributed by nodes , Return the result to master. All the assembly lines are agent Node operation .
Explanation of node diagram and sequence diagram :
explain :
- User opened jenkins The web page is master node , The user to master Node triggers task
- master The node distributes the task to the matching tag agent node , By matching labels agent The node performs specific tasks pipeline
- agnet The node returns the execution result master node , master The node displays it to the user on the page
Deploy :
Deploy jenkins(master node ):
Deployment environment :
- unlimited , windows Or any linux Release versions are available
Deployment steps :
With linux For example :
matters needing attention :
- Deploy master My machine as jenkins Service itself , Make sure the machine is stable
- Need to jenkins The service is added to the startup service , For convenience jenkins Self healing of services
Deploy agent node :
Deployment environment :
- In which environment does the task to be executed run , will agent In which environment is the node's service deployed
- for example :
- test stonedb stay centos compile , will agent The service is in the corresponding centos Start on Service
- Other environments are the same
Deployment steps :
One . Make sure the agent String of tags , You need to determine one first , To make it easier to find , The rule is : agent-ip Address
Two . open jenkins Website , Find the node add page , for example http://192.168.30.238:8080/computer/new, Copy existing nodes directly
3、 ... and . Change to yourself agent The name of i In and labels and working directories
Four . Save the page , Appears for starting agent Commands for services , In the corresponding agent Use this command on the machine to start the agent service
Normal startup log :
Jul 11, 2022 6:26:56 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Jul 11, 2022 6:26:56 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to 192.168.30.238:5549 Jul 11, 2022 6:26:56 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Trying protocol: JNLP4-connect Jul 11, 2022 6:26:56 PM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run INFO: Waiting for ProtocolStack to start. Jul 11, 2022 6:26:57 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Remote identity confirmed: 7f:16:6a:5a:af:09:4c:97:39:8e:ad:3f:f6:5c:c7:20 Jul 11, 2022 6:26:57 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected
5、 ... and . View the launched agent Node services
http://192.168.30.238:8080/computer/
matters needing attention :
- agent The label of is used for subsequent jenkinfile Pipeline file use , Need to be careful
- agent It is better to add the start-up service to the service of the node , In order to restart the machine agent Node service self-healing
边栏推荐
- Sequence table and linked list (sequence table)
- Primary data structure - advantages and disadvantages of sequential list and linked list (leading bidirectional cyclic linked list) + knowledge of CPU cache.
- Worthington 细胞分离优化系统(含细胞分离指南)
- Hcia-r & s self use notes (17) OSPF experiment and routing comprehensive experiment
- MSTP&VRRP协议
- 1234556666
- PMP备考指南之相关事项介绍
- Hcia-r & s self use notes (14) rip protocol
- MSTP & VRRP protocol
- 322. 零钱兑换 ●●
猜你喜欢
NAT技术
Goodbye attention: a new paradigm for modeling users' long-term interests
[HMS core] [FAQ] HMS toolkit typical problem set 1
Implementation of perceptron + activation function + multilayer perceptron
MATLAB basic grammar (I)
Practical demonstration: how to make a scrum iteration plan with ones?
Design of ads multi frequency power amplifier bias network
Troubleshooting - find the loop through lldp information (take H3C S5100 as an example)
Practice of online problem feedback module (10): realize image preview function
STM32 RT thread porting lvgl
随机推荐
HCIA-R&S自用笔记(13)路由典型问题案例分析、动态路由概述
【社媒营销】进来了解下Whatsapp Business API?出海群发不用愁!
Samsung proposes XFORMER | surpassing mobilevit, deit, mobilenet and other models
10 baseline papers required for entry recommendation system
Analysis sample of a video app
AOSP ~ Camera - RK HAL3 ( 二 )
322. Change exchange ●●
pdf转图片以及内容读取
【攻防世界WEB】难度二星6分入门题(上):webshell、command_execution、xff_referer、php_rce、Web_php_include、NewsCenter
109. 有序链表转换二叉搜索树 ●●
Worthington真菌分泌酶研究 丨半乳糖氧化酶方案
[HMS core] [ml kit] FAQ of machine learning service (II)
Tencent cloud deploys Devops
2022-07-18 子查询-优化exists场景的join查询优化器的处理
Goodbye attention: a new paradigm for modeling users' long-term interests
2022-07-18 subquery - optimize the processing of the join query optimizer in the exists scenario
2022-07-13 mysql/stonedb的快速子查询和慢子查询执行对比
1382. 将二叉搜索树变平衡 ●●
Introduction to AOSP ~ camera - YUV format
2022-07-13 mysql的查询优化分析