Jenkins continues to integrate iOS projects

Source: Internet
Author: User

Mainly write a few steps and precautions

1, jekins official website https://jenkins.io/download package

2. Start the Jekins (CD to download package path) terminal to execute the following command

Java-jar Jenkins.war--httpport=8080

3. Web page Open

http://localhost:8080

4, the following is the configuration

1?? System Management

2??、 Configuration

3??、 Source Management

4??、 Build triggers

5??、 Build Environment

6??、 Build

Packaging Scripts (pod engineering)

 # project name app_name= "******" # certificate code_sign_distribution= "IPhone distribution:****** Co., Ltd." # Info.plist Path Project_infopli St_path= "./${app_name}/${app_name}/others (Other)/info.plist" #取版本号 bundleshortversion=$ (/usr/libexec/plistbuddy-c " Print cfbundleshortversionstring "" ${project_infoplist_path} ") #取build值 bundleversion=$ (/usr/libexec/plistbuddy-c" Print Cfbundleversion "" ${project_infoplist_path} ") date=" $ (DATE +%y%m%d) "Ipaname=" ${app_name}_v${ Bundleshortversion}_${date}.ipa "#要上传的ipa文件路径 ipa_path=" $HOME/${ipaname} "echo ${ipa_path} echo" ${ipa_path} "> > Bao.txt # The following 2 lines are integrated with cocopods usage echo "=================clean=================" Xcodebuild-workspace "./${app_name} /${app_name}.xcworkspace "-scheme" ${app_name} "-configuration ' Release ' clean echo" +++++++++++++++++build++++++++++ +++++++ "Xcodebuild-workspace"./${app_name}/${app_name}.xcworkspace "-scheme" ${app_name} "-sdk Iphoneos- Configuration ' Release ' code_sign_identity= "${code_sign_distribution}" symroot= ' $ (PWD) ' Xcrun -SDK Iphoneos packageapplication "./release-iphoneos/${app_name}.app"-O ~/"${ipaname}" 

Upload dandelions or other three-party platforms

#蒲公英上的User keyukey= "* * * * * * * #蒲公英上的API keyapikey=" * * * * * * * * =$ (cat bao.txt) #执行上传至蒲公英的命令echo "+++++++++ +++++upload+++++++++++++ "Curl-f" [Email Protected]${ipa_path} "-F" Ukey=${ukey} "-F" _api_key=${apikey} "/HTTP/ Www.pgyer.com/apiv1/app/upload

⑦, post-build actions can be sent to mailbox notifications, but always fail, and no workaround is found yet

Could not connect to SMTP Host:localhost, port:25;

Reference Links:

Cocoachina:http://www.cocoachina.com/ios/20160804/17281.html

Pinterest: Http://www.jianshu.com/p/ed124917d6c6

Dandelion: Https://www.pgyer.com/doc/view/jenkins_ios

Multiple Xcode problem Resolution: http://blog.csdn.net/woaizijiheni/article/details/50614062

Jenkins continues to integrate iOS projects

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.