如果没有jenkins用户,需要用jenkins用户登录一下。如果登录界面也没有,需要自己手动创建一个。
Stop the jenkins server:
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
Add execute permissions to org.jenkins-ci.plist:
sudo chmod +x /Library/LaunchDaemons/org.jenkins-ci.plist
Set jenkins as the owner of /var/log/jenkins:
sudo chown jenkins /var/log/jenkins
Start Jenkins:
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
此步骤可能需要执行:
sudo chown -R jenkins /Users/Shared/Jenkins
有可能会出现git访问权限问题,需要设置ssh中文件权限:
sudo chown jenkins *
sudo chmod 600 *