Gitlab CI, unable to access ‘http://*.git‘: The requested URL returned error: 403

问题

使用gitlab自带CI,runner为Shell executor, 新项目配置好.gitlab-ci,yml脚本后运行报错,错误信息如下:

Running with gitlab-runner 12.5.0 (577f813d)
  on share-runner 81ad890c
Using Shell executor...
Running on internal1.gan-dao.com...
Fetching changes...
重新初始化现存的 Git 版本库于 /home/gitlab-runner/builds/81ad890c/0/projectName/.git/
fatal: unable to access 'http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@domainName/projectName.git/': The requested URL returned error: 403
ERROR: Job failed: exit status 1

解决方案

将gitlab的root用户加入项目即可。

你可能感兴趣的:(gitlab)