git亚军是无法访问
我正在尝试设置一个gitlab runner来使用gitlab-ci而不是我的Jenkins。 我build立了一个链接docker.sock的docker容器
docker run -d --name gitlab-runner --restart always \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /config/file/on/host:/etc/gitlab-runner \ gitlab/gitlab-runner:latest
容器运行后,我注册了一个新的运行器到gitlab服务器,以下面的configuration结束
concurrent = 1 check_interval = 0 [[runners]] name = "lianli" url = "<https://gitlab_server.de" token = "<secret>" executor = "docker" [runners.docker] tls_verify = false image = "debian:latest" privileged = false disable_cache = false volumes = ["/cache"] shm_size = 0 [runners.cache]
所以现在一切都连接起来。 但是,当pipe道运行时,它以访问错误结束:
remote: Git access over HTTP is not allowed fatal: unable to access 'https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab_server.de/group/project.git/': The requested URL returned error: 403 ERROR: Job failed: exit code 1
我的.gitlab-ci.yml如下所示:
stages: - test variables: NGINX: nginx:stable-alpine before_script: - docker info test: stage: test script: - docker build -t nginx_test .
我不明白,为什么不能访问?
注意:跑步者是版本9.3.0和gitlab是版本9.3.2
你的GitLab实例是否被configuration为接受http请求到存储库? 你是这个项目的成员吗?
- 在GitLab CI中添加SSH密钥时出现语法错误
- GitLab CI构build卡在挂起
- 如何正确部署到主机从gitlab-ci(+ docker)?
- 运行在runner- … -concurrent-0通过…亚军长时间永远不会结束
- 我如何使用git客户端来访问gitlab docker?
- 无法使用Windows Server上的docker运行gitlab-ci的构build
- Gitlab CI编译失败,“准备失败:无法连接到Docker端点”
- gitlab-runner和docker executor找不到官方的图片,比如maven:3.3.9-jdk-8
- GitLab CI – 无法从映像中连接到Docker守护进程