Jenkins MCMARS deployment
1. Technical scenario Overview background: Jenkins of various business lines of large R & D team adopts slave master / standby solution to deploy daily Jenkins is an open source project, which provides an easy-to-use continuous integration system and a large number of plugin to meet everyone's various integration needs. Through the configuration of jenkins Master, different tasks will be sent to multiple machines to execute, improve jenkins processing capacity, advantages: (1). Run CI/CD on different slave task nodes to achieve business load balancing; (2). Tencent Wechat business part of the code testing tool does not support linux, can also support windows nodes; 2. Scheme module diagram
3. Deploy Jenkins MCMARS (one master, two slaves)
(1)。 Environment related information
Name prefix depends on environment version number
Ip address Planning remarks OS
System with sufficient CPU,MEM,Disk resources
CentOS Linux release 7.5
172.21.206.227
172.21.206.228
172.21.206.229
Jenkins MCMARS deployment
Jenkins-master
Ssh MPARS key authentication
Normal deployment of jenkins master
Jenkins ver. 2.190.2
Jenkins_slave01jenkins_slave02
Pay attention to installing the plug-in:
3.jekins installation plug-in list
Plug-in name
Plug-in version
Remarks
Build Timeout
1.19
Timeout plug-in
Docker plugin
1.1
Docker plug-in
Email Extension Plugin
2.6.1
ElasticBox Jenkins Kubernetes CI/CD Plug-in
1.3
K8s plug-in
Git plugin
3.6.4
Git version plug-in
Maven Invoker plugin
1.3
Maven compilation plug-in
Pipeline
1.5
Command execution
Timestamper
1.8.8
Timestamp current log
Publish Over SSH
1.17
Remote transfer of files and execution of Shell commands
SSH plugin
2.5
Ssh connection
Workspace Cleanup Plugin
0.34
Working directory cleanup
Build With Parameters
1.4
Parameterized construction
Extended Choice Parameter0.78 extended Parametric Dashboard for Blue Ocean1.19.0
Friendly interface pipeline
Dashboard
(1)。 Deploy jenkins master node (self-access solution)-- Log in to master node (administrator privileges)-- > Manage Jenkins--- > manage node-- > new
two。 Login machine filtering process appears
3. Interface to view slave status