【发布时间】:2020-07-19 21:05:17
【问题描述】:
我一直在尝试使用我的 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
【问题讨论】:
标签: ios continuous-integration fastlane continuous-delivery