1、安装
brew install jenkins
brew services stop jenkins
brew services start jenkins
brew services restart jenkins
另一种安装方式
https://blog.csdn.net/u011537073/article/details/80025716
https://blog.csdn.net/u011537073/article/details/80025716
2、登录并配置
修改配置
vim /usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist
xml文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.jenkins</string>
<key>ProgramArguments</key>
<array>
<string>/usr/libexec/java_home</string>
<string>-v</string>
<string>1.8</string>
<string>--exec</string>
<string>java</string>
<string>-Dmail.smtp.starttls.enable=true</string>
<string>-jar</string>
<string>/usr/local/opt/jenkins/libexec/jenkins.war</string>
<string>--httpListenAddress=127.0.0.1</string>
<string>--httpPort=8083</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
原文:https://blog.csdn.net/xu906722/article/details/82466155
端口和ip监听方式
http://mikezornek.com/posts/2013/11/updating-homebrews-httplistenaddress-default-for-jenkins/
https://yq.aliyun.com/articles/575562
默认端口8080
本地直接路按照提示输入密码下一步创建账号
3、创建项目
//www.greatytc.com/p/1268118d490f
//www.greatytc.com/p/dac1ce3d7de8