我正在尝试在服务器上运行cicd。一切顺利,但除了因权限错误导致工作失败以外,我的icd yml文件如下所示:
stages:
- deploy
deploy:
stage: deploy
script:
- cd /home/wishato/code
- sudo git pull
tags:
- stagging
错误是这样的:
sudo git pull
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
Running after_script
00:01
Uploading artifacts for failed job
00:00
ERROR: Job failed: exit status 1