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)
您可以为此使用include:local语法。将子文件夹中的CI文件包括在主.gitlab-ci.yml文件中。
include:
- local: '/android/.gitlab-ci-android.yml'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
312 次 |
| 最近记录: |