jenkins+ xcode+ Dandelion for iOS automated packaging and distribution
Direct entry:
Screen Shot 2015-09-18 on 16.56.20.PNGMAC installation Jekins
jekins:http://jenkins-ci.org/, select Mac to install directly. After the installation is successful. Access to http://localhost is normally accessible.
Installing Jekins related Plugins
Certificate Management Plug-in
1.https://wiki.jenkins-ci.org/display/jenkins/keychains+and+provisioning+profiles+plugin# Keychainsandprovisioningprofilesplugin-uploadkeychainandprovisioningprofilefilessection
Xcode Plugin
2.https://wiki.jenkins-ci.org/display/jenkins/xcode+plugin#xcodeplugin-installationguide
Script Execution Plugin
3.https://wiki.jenkins-ci.org/display/jenkins/postbuildscript+plugin
Git plugin
4.https://wiki.jenkins-ci.org/display/jenkins/git+plugin
iOS certificate management and Remediation
1. Click Manage jenkins-> [keychains and Provisioning Profiles Management] to enter the following page
Screen Shot 2015-09-18 at 15.49.30.png
2. Click Choose File and upload the current logged-on user's ~/library/keychain/login.keychain files.
When the upload succeeds, it will appear:
Screen Shot 2015-09-18 at 15.55.05.png
Add the corresponding signature by clicking Add Code Signing Identity
3. Upload the Provisioning Profiles file, Xcode's profile is stored in ~/library/mobiledevice/provisioning profiles/, find the profiles you want, upload
Screen Shot 2015-09-18 at 16.04.46.png
这步很重要,如果证书出错请查看:http://www.cnblogs.com/qingjoin/p/3929493.html
New Project
1.New Item--Select Freestyle project
2. Associating git
Screen Shot 2015-09-18 at 16.27.12.png
Related configuration of 3.Xcode
Screen Shot 2015-09-18 at 16.29.41.png
Screen Shot 2015-09-18 at 16.29.55.png
Screen Shot 2015-09-18 at 16.30.02.png
4.ipa upload to dandelion and send mail
Screen Shot 2015-09-18 at 16.30.40.png
5. The address of the relevant Python file is:
https://github.com/caiwenshu/CI_pgy/blob/master/pgy_upload_temp.py
The code references from: http://www.cocoachina.com/ios/20150428/11698.html
Original HTTP://WWW.JIANSHU.COM/P/371595EF08FE
jenkins+ xcode+ Dandelion for iOS automated packaging and distribution