简体   繁体   English

Fastlane 与 Jenkins 的集成

[英]Fastlane integration with Jenkins

I have been playing with Fastlane, to automate common processes that we always go through when publishing app to the TestFlight for example.例如,我一直在使用 Fastlane 来自动化我们在将应用程序发布到 TestFlight 时总是要经历的常见流程。 I have this lane (in Fastfile):我有这条车道(在 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

and this is Gymfile这是 Gymfile

scheme("my-scheme")

output_directory("./fastlane/builds")

include_bitcode(true)

include_symbols(false)

export_xcargs("-allowProvisioningUpdates")

Now this allows me to send a build to a TestFlight.现在这允许我将构建发送到 TestFlight。

But, what would be better is that I can use Jenkins along with Fastlane, so it each time, a commit is made on specific branch (say dev), makes a build and sends it to TestFlight.但是,更好的是我可以将 Jenkins 与 Fastlane 一起使用,因此每次都会在特定分支(例如 dev)上进行提交,进行构建并将其发送到 TestFlight。 What would be a way, to perform all these Fastlane specific actions, eg.执行所有这些 Fastlane 特定操作的方法是什么,例如。 gym, pilot etc... with Jenkins?健身房,飞行员等......与詹金斯?

Fastlane:快车道:

The easiest way to build and release mobile apps.构建和发布移动应用程序的最简单方法。 fastlane handles tedious tasks so you don't have to. fastlane 处理繁琐的任务,因此您不必这样做。 source来源

Jenkins:詹金斯:

The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project.作为领先的开源自动化服务器,Jenkins 提供了数百个插件来支持任何项目的构建、部署和自动化。 source来源

Fastlane is a tool to build and deploy an mobile app and Jenkins is automation suite to build, deploy any type of an app (web, mobile, desktop). Fastlane 是构建和部署移动应用程序的工具,Jenkins 是构建、部署任何类型的应用程序(Web、移动、桌面)的自动化套件。 With Jenkins you can achieve the same steps but it will take more time to set it up.使用 Jenkins,您可以实现相同的步骤,但需要更多时间进行设置。 Fastlane can't trigger actions as Jenkins can do. Fastlane 不能像 Jenkins 那样触发动作。 So, If you would like to have a night builds you should set it up via Cron Jobs or Jenkins.因此,如果您想进行夜间构建,则应通过 Cron Jobs 或 Jenkins 进行设置。

Similar functionalities of Fastlane you can get in Jenkins via plugins like this one "Xcode Integration" https://plugins.jenkins.io/xcode-plugin Fastlane 的类似功能,您可以通过像“Xcode 集成”这样的插件在 Jenkins 中获得https://plugins.jenkins.io/xcode-plugin

Fastlane has a CI integration document titled "Jenkins integration" Fastlane 有一个名为“Jenkins 集成”的 CI 集成文档

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

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