Mac Jenkins安装与配置

1,019 阅读1分钟

Jenkins安装

通过homebrew安装Jenkins,这里安装稳定版

brew install jenkins-lts

安装指定版本

brew install jenkins-lts@YOUR_VERSION

启动jenkins服务

brew services start jenkins-lts

重启jenkins服务

brew services restart jenkins-lts

更新jenkins版本

brew upgrade jenkins-lts

使用brew安装 jenkins,能解决一些权限问题,但是默认配置为 localhost:8080,不能通过ip访问。需要修改homebrew.mxcl.jenkins.plist来允许ip访问。

通过where查询jenkins安装路径

where jenkins-lts

image.png

修改端口号

先根据路径找到配置文件

/opt/homebrew/Cellar/jenkins-lts/2.387.2/homebrew.mxcl.jenkins-lts.plist 

image.png