Fastlane结帐新分支

时间:2019-08-05 14:49:58

标签: ios continuous-integration fastlane continuous-delivery

我一直试图用我的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

1 个答案:

答案 0 :(得分:0)

我知道这是一个老问题。但是,如果有人想知道如何执行此操作,请签出this Fastlane插件。

相关问题