Skip to content

Jenkins job template with build scripts for packing apps, include iOS and Android.

License

Notifications You must be signed in to change notification settings

debugtalk/JenkinsTemplateForApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Jenkins job overview:

Jenkins job build page view:

开箱即用

1,添加构建脚本;

  • 在构建脚本中配置PROVISIONING_PROFILEpgyer/fir.im账号;
  • build_scripts文件夹及其文件拷贝至目标构建代码库的根目录下;
  • build_scripts提交到项目的仓库中。

除了与Jenkins实现持续集成,构建脚本还可单独使用,使用方式如下:

$ python ${WORKSPACE}/build_scripts/build.py \
    --scheme ${SCHEME} \
    --workspace ${WORKSPACE}/Store.xcworkspace \
    --sdk ${SDK}
    --configuration ${CONFIGURATION} \
    --output_folder ${WORKSPACE}/${OUTPUT_FOLDER}

需要特别说明的是,若要构建生成可在移动设备中运行的.ipa文件,则要将${SDK}设置为iphoneos;若要构建生成可在模拟器中运行的.app文件,则要将${SDK}设置为iphonesimulator

2、运行jenkins,安装必备插件;

$ nohup java -jar jenkins_located_path/jenkins.war &

3、创建Jenkins Job;

  • 在Jenkins中创建一个Freestyle project类型的Job,先不进行任何配置;
  • 然后将config.xml文件拷贝到~/.jenkins/jobs/YourProject/中覆盖原有配置文件,重启Jenkins;
  • 完成配置文件替换和重启后,刚创建好的Job就已完成了大部分配置;
  • Job Configure中根据项目实际情况调整配置,其中Git Repositories是必须修改的,其它配置项可选择性地进行调整。

4、done!

Read More ...

About

Jenkins job template with build scripts for packing apps, include iOS and Android.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages