通过 GitLab 管道接受 Flutter Android 许可失败

时间:2021-06-17 02:52:16

标签: flutter gitlab-ci gitlab-ci-runner

我已经为我的 Flutter 构建设置了一个 GitLab CI 管道。我还设置了一个配置作业,在向 shell 执行程序注册运行程序后,将所有必需的依赖项安装为初始作业。此作业安装运行其他作业所需的依赖项。

到此,Flutter 安装和其他 SDK 安装成功。但是当我运行命令接受来自管道的所有 Android 许可证时,它给出了一个错误。

这是我使用的命令:

- yes | flutter doctor --android-licenses

这是我收到的错误:

Accept? (y/N): All SDK package licenses accepted
Cleaning up file based variables
ERROR: Job failed: exit status 1

我认为,它接受所有许可,然后失败了。这可能是什么问题。

当我将它作为 shell 脚本运行时,它运行良好。

0 个答案:

没有答案