2019年 10月 22日 星期二 10:18:18 CST
场景描述:我在kali上部署了gitlab-runner用于项目的devops工作
遇到如下问题:
Running with gitlab-runner 12.3.0 (a8a019e0)
on bughunter-4.0 hjv9uH2Z
Using Shell executor...
Running on kali...
TERM environment variable not set.
bash: 第 81 行:cd: /home/gitlab-runner/builds/hjv9uH2Z/0/bughunterteam/bughunter: 没有那个文件或目录
ERROR: Job failed: exit status 1
解决办法:删除/home/gitlab-runner下的.bash_logout文件即可
rm /home/gitlab-runner/.bash_logout
官方bug记录:
https://gitlab.com/gitlab-org/gitlab-runner/issues/1379
https://gitlab.com/gitlab-org/gitlab-runner/issues/4449
以上供参考。