设置并行度

默认concurrent设置了1,只能有1个job并行执行,把concurrent参数改一下,比如改成6,就可以一次并行6个job了

1
vim /etc/gitlab-runner/config.toml

修改打包路径

默认存放在/home/gitlab-runner,是存放在系统盘

全局修改方法

1
vim /etc/systemd/system/gitlab-runner.service

把基础目录改成:想要改动的路径

重启runner

1
2
systemctl daemon-reload
systemctl restart gitlab-runner

注意需要给gitlab-runner-build-dir目录权限

局部修改,针对每个runner修改

修改文件

1
vi /etc/gitlab-runner/config.toml

重置执行目录:想要改动的路径

重启runner

1
gitlab-runner restart

(默认启动项目会作用在gitlab-runner用户下)修改 gitlab runner 默认用户 (gitlab-runner) 为 root

1
vim /etc/systemd/system/gitlab-runner.service

重启

1
2
systemctl daemon-reload
systemctl restart gitlab-runner