当我试图运行管道时,我会得到以下错误
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
这和gitlab-runner的权限有关吗?我试过让它完全进入,但还是失败了。有人能帮我吗?
我正在遵循在https://docs.gitlab.com/runner/install/linux-manually.html的gitlab上提到的指南
Gitlab运行程序版本:13.4.1Git版本: e95f89a0 Git分支:13-4-稳定Git版本: go1.13.8构建: 2020-09-25T20:03:43+0000 OS/Arch: linux/amd64 64
Ubuntu 分发服务器ID: Ubuntu :Ubuntu20.04.1LTS发行版: 20.04代码:焦点
发布于 2020-10-08 09:13:45
我似乎找到了解决办法。
正如@maksim.danilin在https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2126上回答的那样
/home/gitlab-runner
rm *中的.*文件中删除所有文件,如果您在gitlab文件夹中,则应执行此操作。
此外,遵循@Reactgular (How to use sudo in build script for gitlab ci?)的解决方案。
向
$ sudo usermod -a -G sudo gitlab-runner用户
gitlab用户
$ sudo visudo的
将以下内容添加到文件
https://stackoverflow.com/questions/64257998
复制相似问题