报错:We trust you have received the usual lecture from the local System



因为没有应用sshpass 的形式操作文件;以后应用的scp 进行文件的操作;可能会提醒 报错: We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. sudo: no tty present and no askpass program specified Cleaning up project directory and file based variables 00:00 ERROR: Job failed: exit status 1 起因: 因为尝试应用sudo运行命令引起的,然而调用用户没有被受权应用 sudo 解决: 关上 sudoers 文件vim /etc/sudoers ;将以下内容增加到文件底部 gitlab-runner ALL=(ALL) NOPASSWD: ALL