1、安裝地址:
http://jenkins-ci.org/
2仇哆、運行需要安裝JDK
下載地址:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
3迫肖、運行jenkins:
java -jar jenkins.war --httpPort=8888
--httpPort=8888 : 制定jenkins所使用的http端口號
初始化密碼文件位置:
/Users/a21/.jenkins/secrets/initialAdminPassword
配置步驟:
- 1、安裝jinkens
- 2、設(shè)置jinkens密碼
- 3钩述、添加global credentials (ssh privatekey)
- 4、新建項目
- 5穆碎、配置git clone地址
- 6牙勘、add keychain (添加與否都可以)
注意點:
一、關(guān)鍵詞 PackageApplication
需要下載 PackageApplication.zip copy到1目錄下 1惨远、/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
2谜悟、sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
3、chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication
二北秽、解決Enter passphrase for key /root/.ssh/id_rsa.pub
1葡幸、eval "$(ssh-agent -s)"
2、ssh-add -K ~/.ssh/id_rsa