Git lab build失败,出现403错误

时间:2017-12-19 22:50:11

标签: gitlab-ci

我正在尝试为项目设置gitlab runner,当我尝试运行构建时,我收到403错误。 我在哪里可以查看构建日志,而不是执行systemctl status gitlab-runner?

git-lab-runner版本:9.5.1

构建错误:

Running with gitlab-ci-multi-runner 9.5.1 (96b34cc)
  on ci (3aa5e67d)
Using Docker executor with image docker.xxx.com/terraform:latest ...
Using docker image sha256:134722953932eb772ab67a8b6e865aae2da7fe6ba3f09e757ea09e0d416ec203 for predefined container...
Pulling docker image docker.xxx.com/terraform:latest ...
Using docker image docker.xxx.com/terraform:latest ID=sha256:fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx for build container...
Running on runner-3aa5e67d-project-184-concurrent-0 via ip-10-xx-xx-xx...
    Cloning repository...
    Cloning into '/builds/bi/abc'...
    fatal: unable to access 'https://gitlab.xxxx.com/folder/abc.git/': The requested URL returned error: 403
    ERROR: Job failed: exit code 1

runner config:

concurrent = 1
check_interval = 0

[[runners]]
  name = "ci"
  url = "http://gitlab.xxx.com"
  token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  executor = "docker"
  [runners.docker]
    tls_verify = false
    image = "docker.xxx.com/terraform:latest"
    privileged = false
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0
  [runners.cache]

我已将gitlab runner配置为另一个项目,但它没有要求我将用户添加到成员中,如何解决此错误,我认为这是一个身份验证错误。

0 个答案:

没有答案