简体   繁体   English

Fastlane TestFlight 构建

[英]Fastlane TestFlight Builds

I've been working to figure out a good solution to pushing daily TestFlight builds to internal testers for our iOS application.我一直在努力找出一个很好的解决方案,将每日 TestFlight 构建推送给我们 iOS 应用程序的内部测试人员。 Since these would be pushed daily, I do not want to use existing fastlane actions that generate a commit each time.由于这些将每天推送,我不想使用每次生成提交的现有 fastlane 操作。 What I would like to do is set the build of the app based on an environment variable (a build number generated by Jenkins).我想要做的是根据环境变量(由 Jenkins 生成的构建号)设置应用程序的构建。

This way, I would just export a build number from the jenkins job and use that to increment the build for the TestFlight upload.这样,我只需从 jenkins 作业中导出一个内部版本号,并使用它来增加 TestFlight 上传的内部版本。

After that I was planning on running this as a daily job.之后,我计划将此作为日常工作运行。

Has anyone done something like this?有没有人做过这样的事情?

Jenkins already exports environment variables that you can use in your script. Jenkins 已经导出了您可以在脚本中使用的环境变量

You are not forced to do a commit everytime, you could simply checkout the latest code, and do something like:您不必每次都进行提交,您可以简单地检出最新的代码,然后执行以下操作:

lane :testflight_without_commit do 
  increment_build_number(build_number: ENV['BUILD_NUMBER'])
  gym
  pilot
end

This will locally set the build number to your jenkin's job build number, and compile an archive with the local changes.这将在本地将构建号设置为您的 jenkin 的作业构建号,并使用本地更改编译存档。 Don't commit, don't push, and you should be fine.不要承诺,不要推动,你应该没问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM