iOS可持续化集成:Jenkins+bundler+cocoapods+fastlane+fir/pgyer

Continuous integration (CI)

软件包管理工具Homebrew

安装 jenkins

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$ brew install jenkins
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.
==> Using the sandbox
==> Downloading http://mirrors.jenkins-ci.org/war/2.50/jenkins.war
Already downloaded: /Users/sun/Library/Caches/Homebrew/jenkins-2.50.war
==> jar xvf jenkins.war
==> Caveats
Note: When using launchctl the port will be 8080.
To have launchd start jenkins now and restart at login:
brew services start jenkins
Or, if you don't want/need a background service you can just run:
jenkins
==> Summary
🍺 /usr/local/Cellar/jenkins/2.50: 7 files, 66.7MB, built in 6 seconds

安装成功,可以使用brew services list查看运行状态。

1
2
3
$ brew services list
Name Status User Plist
jenkins started sun /Users/sun/Library/LaunchAgents/homebrew.mxcl.jenkins.plist

卸载jenkins

1
2
3
4
$ brew uninstall jenkins
Uninstalling /usr/local/Cellar/jenkins/2.50... (7 files, 66.7MB)
$ rm -rf ~/.jenkins/

启动jenkins

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$ jenkins
Running from: /usr/local/Cellar/jenkins/2.50/libexec/jenkins.war
webroot: $user.home/.jenkins
... 此处略去一万字log ...
三月 16, 2017 4:10:09 下午 jenkins.install.SetupWizard init
信息:
*************************************************************
*************************************************************
*************************************************************
Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
5a99576196344ed5a8f1acdb71413325
This may also be found at: /Users/sun/.jenkins/secrets/initialAdminPassword
*************************************************************
*************************************************************
*************************************************************
三月 16, 2017 4:10:14 下午 hudson.model.UpdateSite updateData
... 此处略去一万字log ...
信息: Jenkins is fully up and running

打开浏览器,访问http://localhost:8080,出现如下图页面:

输入日志里面的初始密码(Administrator password),点击Continue

选择Install suggested plugins,进入安装界面

等待十几分钟,完成后跳转到创建Admin User页面,填写相关信息,点击Save and Finish

http://blog.csdn.net/azhou_hui/article/details/51244667

http://www.jianshu.com/p/2f2dcf41667c

http://blog.csdn.net/dexin5195/article/details/52488490

http://www.tuicool.com/articles/R7N3ma6

http://www.jianshu.com/p/00c98e488433

* 未完待续 *