目 录CONTENT

文章目录

Jenkins系列10-分布式基础

cplinux98
2022-08-30 / 0 评论 / 0 点赞 / 390 阅读 / 154 字 / 正在检测是否收录...

00:文章简介

介绍Jenkins的分布式基础。

01:基础知识

image

image

image

02:环境部署

image

插件
SSH Build Agents
SSH

【系统管理】>【节点管理】>【新建节点】

image

image

image

配置节点的属性

image

查看节点状态

image

03:在自由风格中使用slave节点

image

image

image

image

在gitlab中添加slave的公钥

image

在slave中添加git的user.name 和 user.email信息

git config --global user.name lcp
git config --global user.email lcp@linux98.com
ssh root@10.0.0.120     # 把gitlab主机的key记住一下

image

测试执行效果

image

04:在pipeline中指定slave执行

image

image

或者修改jenkinsfile

image

image

0

评论区