本文发布于Cylon的收藏册,转载请著名原文链接~


修改启动用户

先停止jenkins服务

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo vim /Library/LaunchDaemons/org.jenkins-ci.plist

授权jenkins工作目录和临时目录

sudo chown -R zhulangren:wheel /Users/Shared/Jenkins/
sudo chown -R zhulangren:wheel /var/log/jenkins/

启动jenkins

sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

jenkins自启动文件路径

/Library/LaunchDaemons/org.jenkins-ci.plist

卸载脚本文件

/Library/Application\ Support/Jenkins/Uninstall.command

修改jenkins启动端口

sudo defaults write /Library/Preferences/org.jenkins-ci httpPort '9999'

读取jenkins配置文件

defaults read /Library/Preferences/org.jenkins-ci

设置自启动

sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plis

取消自启动

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist

jenkins war路径

/Applications/Jenkins/jenkins.war

Reference

Mac Jenkins 权限问题

本文发布于Cylon的收藏册,转载请著名原文链接~

链接:https://www.oomkill.com/2019/10/jenkens-migrant-in-macos/

版权:本作品采用「署名-非商业性使用-相同方式共享 4.0 国际」 许可协议进行许可。