{"id":15373737,"url":"https://github.com/debugtalk/jenkinstemplateforapp","last_synced_at":"2025-09-08T16:47:37.265Z","repository":{"id":87470103,"uuid":"62105204","full_name":"debugtalk/JenkinsTemplateForApp","owner":"debugtalk","description":"Jenkins job template with build scripts for packing apps, include iOS and Android.","archived":false,"fork":false,"pushed_at":"2017-03-10T02:34:23.000Z","size":407,"stargazers_count":304,"open_issues_count":5,"forks_count":108,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-02T12:43:40.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/debugtalk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-28T02:57:33.000Z","updated_at":"2025-01-24T08:34:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"73674fef-a408-4cab-ad6d-5f07310677a7","html_url":"https://github.com/debugtalk/JenkinsTemplateForApp","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"9b849d4252296820e8c2c32621c823a8ed2d67e1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debugtalk%2FJenkinsTemplateForApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debugtalk%2FJenkinsTemplateForApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debugtalk%2FJenkinsTemplateForApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debugtalk%2FJenkinsTemplateForApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debugtalk","download_url":"https://codeload.github.com/debugtalk/JenkinsTemplateForApp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248086140,"owners_count":21045282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T13:56:12.302Z","updated_at":"2025-04-09T18:23:52.086Z","avatar_url":"https://github.com/debugtalk.png","language":"Python","readme":"## Overview\n\n**Jenkins job overview:**\n\n![](images/Jenkins_Job_Overview.jpg)\n\n**Jenkins job build page view:**\n\n![](images/Jenkins_Job_Build_View.jpg)\n\n\n## 开箱即用\n\n**1，添加构建脚本；**\n\n- 在构建脚本中配置`PROVISIONING_PROFILE`和`pgyer/fir.im`账号；\n- 将`build_scripts`文件夹及其文件拷贝至目标构建代码库的根目录下；\n- 将`build_scripts`提交到项目的仓库中。\n\n除了与Jenkins实现持续集成，构建脚本还可单独使用，使用方式如下：\n\n```bash\n$ python ${WORKSPACE}/build_scripts/build.py \\\n    --scheme ${SCHEME} \\\n    --workspace ${WORKSPACE}/Store.xcworkspace \\\n    --sdk ${SDK}\n    --configuration ${CONFIGURATION} \\\n    --output_folder ${WORKSPACE}/${OUTPUT_FOLDER}\n```\n\n需要特别说明的是，若要构建生成可在移动设备中运行的`.ipa`文件，则要将`${SDK}`设置为`iphoneos`；若要构建生成可在模拟器中运行的`.app`文件，则要将`${SDK}`设置为`iphonesimulator`。\n\n**2、运行jenkins，安装必备插件；**\n\n```bash\n$ nohup java -jar jenkins_located_path/jenkins.war \u0026\n```\n\n**3、创建Jenkins Job；**\n\n- 在Jenkins中创建一个`Freestyle project`类型的Job，先不进行任何配置；\n- 然后将`config.xml`文件拷贝到`~/.jenkins/jobs/YourProject/`中覆盖原有配置文件，重启Jenkins；\n- 完成配置文件替换和重启后，刚创建好的Job就已完成了大部分配置；\n- 在`Job Configure`中根据项目实际情况调整配置，其中`Git Repositories`是必须修改的，其它配置项可选择性地进行调整。\n\n**4、done！**\n\n## Read More ...\n\n- [《使用Jenkins搭建iOS/Android持续集成打包平台》](http://debugtalk.com/post/iOS-Android-Packing-with-Jenkins)\n- [《关于持续集成打包平台的Jenkins配置和构建脚本实现细节》](http://debugtalk.com/post/iOS-Android-Packing-with-Jenkins-details)\n- 微信公众号：[DebugTalk](http://debugtalk.com/images/wechat_qrcode.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebugtalk%2Fjenkinstemplateforapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebugtalk%2Fjenkinstemplateforapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebugtalk%2Fjenkinstemplateforapp/lists"}