与 Jenkins 的快速通道集成

Fastlane integration with Jenkins

我一直在玩 Fastlane,以自动化我们在将应用程序发布到 TestFlight 时经常经历的常见流程。我有这条车道(在 Fastfile 中):

default_platform(:ios)

lane :beta do
 enable_automatic_code_signing
  increment_build_number
  gym
  # Use pilot to upload your app to testflight
  pilot(distribute_external: false)
end

这是 Gymfile

scheme("my-scheme")

output_directory("./fastlane/builds")

include_bitcode(true)

include_symbols(false)

export_xcargs("-allowProvisioningUpdates")

现在我可以将构建发送到 TestFlight。

但是,更好的是我可以将 Jenkins 与 Fastlane 一起使用,因此每次都会在特定分支(比如开发)上进行提交,进行构建并将其发送到 TestFlight。执行所有这些 Fastlane 特定操作的方法是什么,例如。健身房,飞行员等......与詹金斯?

快车道:

The easiest way to build and release mobile apps. fastlane handles tedious tasks so you don’t have to. source

詹金斯:

The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project. source

Fastlane 是一种用于构建和部署移动应用程序的工具,而 Jenkins 是用于构建和部署任何类型的应用程序(Web、移动、桌面)的自动化套件。使用 Jenkins,您可以实现相同的步骤,但设置它需要更多时间。 Fastlane 不能像 Jenkins 那样触发动作。因此,如果您想要 夜间构建 ,您应该通过 Cron Jobs 或 Jenkins 进行设置。

您可以通过像这样的插件在 Jenkins 中获得 Fastlane 的类似功能 "Xcode Integration" https://plugins.jenkins.io/xcode-plugin

Fastlane 有一个 CI 集成文档,标题为 "Jenkins integration"