ios - FaSTLane结帐新分支

标签 ios continuous-integration fastlane continuous-delivery

我一直在尝试创建一条 channel ,用于使用我的 fastfile 创建一个新分支。据我尝试运行 git 命令,我必须像这样在快速文件中使用“sh”命令:sh("git", "checkout", "-b","ANewBranch")

是否有插件可以消除使用 sh 和双引号的这种依赖性?

此外,我一直在尝试从我的快速文件运行“git_branch”操作,但它不起作用。 “increment_build_number”等其他操作按预期工作。这是快速文件:

lane :createBranch do | options |
    if options[:branchName]
        sh("git", "checkout", "-b", options[:branchName])
        git_branch
    else
        UI.user_error!("Send the branch name as: <fastlane createBranch branchName:NewBranchName>")
    end
end

最佳答案

我知道这是一个老问题。但如果有人想知道如何做到这一点,请查看 this快车道插件。

关于ios - FaSTLane结帐新分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57361043/

相关文章:

ios - iOS9以下版本如何支持UIStackView

ios - 当应用进入后台时重置 backgroundTimeRemaining

ios - 使用缓存的 UICollectionViewLayoutAttributes 子类化 UICollectionViewLayout

eclipse - Eclipse 的持续集成插件

ios - 在 Apple M1 上使用 faSTLane 扫描运行 iOS 项目 UT

ios - 格式化的 NSDate 输出 - 当前日期

java - Maven单独构建打包和Cucumber集成测试

continuous-integration - TeamCity 工件路径组合文件夹

ios - 将 FaSTLane 与 CircleCI 集成 : Cocoapods framework not found

ruby - Fastfile 中的代码到底是什么