gitlab-ci 运行sudo命令时出错:
$ sudo cp deploy/config/stage.ini /etc/ibd-research-tool.ini
sudo: sorry, you must have a tty to run sudo
解决:
sudo vi /etc/sudoers
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
# You have to run "ssh -t hostname sudo <cmd>".
#
# Defaults requiretty
注释掉Defaults requiretty