gitlab-runner 构建目录位置不符合 LaunchAgent (macos)

gitlab-runner build directory location does not respect the LaunchAgent (macos)

我已经设置了 DAG pipelines 中显示的玩具多作业。我已经更新了我的 LaunchAgent plist 以指向特定的构建目录:/Users/me/Documents/GitLabCI/。多作业中的第一个作业在此目录中运行。其余工作 总是 在 /Users/me/.

中构建

如何让 gitlab-runner 遵守构建目录?

LaunchAgent 不再受 gitlab-runner 的尊重。相反,您必须执行以下操作:

  1. variables: GIT_CLONE_PATH = $CI_BUILDS_DIR 添加到您的 .gitlab-ci.yml 文件;
  2. 在 config.toml 的 [[runners]] 部分下添加值 builds_dir = "path/to/build/dir"
  3. 停止并重新启动 gitlab-runner。