我正在使用gitlab runner并按照快速入门指南正确链接了跑步者。但是yml文件中存在一些问题。 AFAIK的问题在于码头图像。但不知道调试和修复它的步骤应该是什么。泊坞窗图像列在下面的日志中。构建工具和adt都在beevelop / android中。
# ANDROID_HOME should be setup in env
before_script:
- pwd
- chmod +x ./gradlew
dev:
script:
- ./gradlew assembleDebug
Gitlab Runner日志:
gitlab-ci-multi-runner 0.7.2 (998cf5d)
Using Docker executor with image beevelop/android ...
Pulling docker image gitlab/gitlab-runner:build ...
Pulling docker image beevelop/android:latest ...
Running on runner-553c2779-project-109852-concurrent-0 via RC900...
Cloning repository...
Cloning into '/builds/rcmobile/bemol'...
Checking out bcd208a9 as master...
Note: checking out 'bcd208a9b4604905f2253511ed32410443428047'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at bcd208a... Merge remote-tracking branch 'origin/master'
bash: line 19: cd: /builds/rcmobile/bemol: No such file or directory
ERROR: Build failed with: exit code 1
答案 0 :(得分:0)
当我在配置了&#39; docker&#39;的Windows机器上运行Gitlab运行程序客户端时遇到了同样的问题。遗嘱执行人。看起来当跑步者设置缓存容器时,它正在逃避目录的Windows反斜杠(例如\ builds \ development \ project)。然后,当它实际使用目录时,它使用的是UNIX正斜杠(例如/ builds / development / project),导致&#34;没有这样的文件或目录&#34;错误。从您的日志输出中我无法判断这是否是相同的情况。
我无法弄清楚如何让缓存容器使用正确的目录。相反,我使用Gitlab runner docker客户端解决了这个问题,遵循此处概述的一些文档:https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/docker.md