gitlab pipeline on sub projects

Ray*_*non 2 yaml gitlab gitlab-ci gitlab-ci-runner

Suppose main project has sub-projects

MainProject/
       \-------- android
                   \-------- .gitlab-ci-android.yml
       \-------- ios
       \-------- lib
       \-------- .gitlab-ci.yml
Run Code Online (Sandbox Code Playgroud)

I want my .gitlab-ci.yml to run parallel jobs for each subfolder. My goal is to have separate .gitlab-ci.yml files. Yes, it looks messy to touch only one file when you have to configure the CI of a few projects.

What is the exact command line to run jobs from the main .gitlab-ci.yml?

I tried with , but not working

jobAndroid:
  script: "gitlab-runner exec android/.gitlab-ci-android.yml"
Run Code Online (Sandbox Code Playgroud)

Kin*_*ang 5

您可以为此使用include:local语法。将子文件夹中的CI文件包括在主.gitlab-ci.yml文件中。

include:
  - local: '/android/.gitlab-ci-android.yml'
Run Code Online (Sandbox Code Playgroud)