GitLab CI-具有同时作业的Shell执行器不起作用

时间:2019-12-12 12:04:17

标签: gitlab-ci gitlab-ci-runner

当GitLab CI在同一管道中同时运行作业,或者同时在多个管道中运行时,我会遇到几个异常。

Runner配置:

[[runners]]
  name = "android"
  url = "X"
  token = "X"
  executor = "shell"
  [runners.custom_build_dir]
  [runners.cache]

.gitlab-ci.yml

.develop: &develop
  tags:
    - android
  only:
    refs:
      - merge_requests

Job A:
  stage: stageParalell
  <<: *develop
  script:
    - bundle exec fastlane test module:A

Job B:
  stage: stageParalell
  <<: *develop
  script:
    - bundle exec fastlane test module:B

Job C:
  stage: stageParalell
  <<: *develop
  script:
    - bundle exec fastlane test module:C

我还注意到我所有的管道都访问同一目录:

<DIR>/builds/<RUNNER>/0/app_dev/<PROJECT>/.git/

代替工作目录

<DIR>/builds/<RUNNER>/0/app_dev/<PROJECT>/.git/
<DIR>/builds/<RUNNER>/1/app_dev/<PROJECT>/.git/
<DIR>/builds/<RUNNER>/2/app_dev/<PROJECT>/.git/

有什么主意吗?

0 个答案:

没有答案