我刚刚在本地安装了GitLab CI runner,因为我需要调试一个构建。从文档中可以清楚地了解如何安装它以及如何配置它,但我不清楚构建是如何触发的?
根据我整理的文档:
$ gitlab-runner run --debug
Runtime platform arch=amd64 os=linux pid=38298 revision=a998cacd version=13.2.2
Starting multi-runner from /home/mark/.gitlab-runner/config.toml... builds=0
WARNING: Running in user-mode.
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...
然后它启动了,似乎在等待什么。但我不知道如何触发它开始构建。
我该怎么做?
更新:
运行gitlab-runner --debug run exec docker tdd
给我:
...
...
Waiting for stop signal builds=0
listen_address not defined, metrics & debug endpoints disabled builds=0
[session_server].listen_address not defined, session endpoints disabled builds=0
Feeding runners to channel builds=0
Starting worker builds=0 worker=0
Dialing: tcp gitlab.com:443 ...
Checking for jobs... nothing runner=5Y2eis4Q
Feeding runners to channel builds=0
Feeding runners to channel builds=0
您有.gitlab-ci.yml
文件权限吗?
如果是,您只需要在应用程序文件夹的根路径中执行
gitlab-runner exec <executor> <step of your pipeline>