背景:在该台mac上搭建了docker,并安装了jenkins镜像
1、Jenkins->Manage jenkins->Manage Nodes and clouds->New Node
2、填写name,点击create
3、填写Number of executors、Remote root directory(mac上的jenkins地址)、Labels、Usage选择Use this node as possible
4、Launch method选择Launch agents via SSH,Host选择本地地址,Credentials添加该台mac开机的用户名和密码,并添加;Host Key Verification Strategy选择Non verifying Verfication Strategy;Avaliability选择Keep this agent online as much as possible
5、配置Node Properties
6、配置Tool Locations,点击Save