我正在使用 gitlab runner,并按照快速入门指南正确链接了 runner。但是 yml 文件中存在一些问题。AFAIK 问题出在 docker 映像中。但不知道调试和修复它的步骤应该是什么。泊坞窗图像列在下面的日志中。构建工具和 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