2012年10月21日 星期日
Jenkins
http://blog.w3i.com/2012/08/08/continuous-build-and-deployment-for-ios-and-android-apps/
有把一些問題 有描述出來 不見得有詳細解啦 似乎還有提供更新的方法
@Q@
http://www.jeffhung.net/blog/articles/jeffhung/3452/
這裡有一些小東西
http://www.gandogames.com/2011/08/continuous-integration-with-jenkins/
首先 先下載安裝...
在mac 中會安裝到
/Users/Shared/Jenkins/Home 中
接著安裝 Xcode plugin
以及 github plugin
由於網頁應該是run 在jvm上面
會有權限的問題
所以可能需要將 /Users/Shared/Jenkins/ 內的資料
用 Chown -R jenkins /Users/Shared/Jenkins/
把所有者換掉
現在只成功了用 git://github.com/willsbor/JenkinsTest.git
ssh 的部份 似乎還是會卡在授權的問題
應該就可以clone到 git的資料了
接著... 如果設定對了
可能會遇到
http://www.gerardcondon.com/blog/2012/09/20/further-jenkins-setup-code-signing/
(以上狀況 在我自己的實務操作上 沒有勾選 unlock login.keychains)
1. copy login.keychains 的需要用的認證到 system.keychains 中
2. copy provision 到正確的位置 網頁上的 給錯了 實際上我應該沒有Home的資料夾
/Users/Shared/Jenkins/Library/MobileDevice/Provisioning Profiles
todo
1. 要能自己增加 build version
http://www.jayway.com/2011/05/31/auto-incrementing-build-numbers-in-xcode/
http://www.alienzombiepirate.com/2012/05/jenkins-for-android-builds/
2. 由於 clone 會只能將整的都下載下來
但是後來的應用可能會是多的project放在同一個 rep下
要試著去設定 每個 job 內的build的資料夾 (似乎有參數可以設定)
3. android 的部份
next topic
4. 不同的 target
pending
5. 加入mail send
http://support.google.com/mail/bin/answer.py?hl=zh-Hant&answer=13287
https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
6. 下載ipa or apk 的方式
http://www.slideshare.net/CocoaHeadsFrance/build-automatique-et-distribution-ota-avec-xcode-4x-et-jenkins
to Test flight
http://blog.shinetech.com/2011/06/23/ci-with-jenkins-for-ios-apps-build-distribution-via-testflightapp-tutorial/
7. git commit後 就build
http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/
http://fourkitchens.com/blog/2011/09/20/trigger-jenkins-builds-pushing-github
http://blog.avisi.nl/2012/01/13/push-based-builds-using-jenkins-and-git/
ps. 有些忘了... 想到在加入
發佈 ipa有安全性的問題...
http://www.appaloosa-store.com/features?locale=en
http://www.leonardoborges.com/writings/2012/05/03/build-automation-with-xcode-4-dot-3-kif-and-jenkins/
https://ci.jenkins-ci.org/env-vars.html/?
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言