Jenkins job template with build scripts for packing apps, include iOS and Android.
Python
Latest commit b8e5a39 Aug 8, 2016 @debugtalk refactor build scripts:
1, add support of building app for simulator;
2, split build.py to several files.
Permalink
Failed to load latest commit information.
images add watermark to images Jun 28, 2016
jobs/job_template update Jul 27, 2016
workspace/YourProject/Build_scripts refactor build scripts: Aug 9, 2016
.gitignore init Jun 28, 2016
LICENSE Initial commit Jun 28, 2016
README.md refactor build scripts: Aug 9, 2016

README.md

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 ${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 ...