09-includes
You can split your jobs into several yaml files and include these files in the main file: .gitlab-ci.yml
TODO
-
create a merge request from this issue -
open the WebIDE -
create a new file hello.yml
with this content:.hello: image: python:slim tags: [docker] script: - python -c "print('hello')"
-
update the .gitlab-ci.yml
file -
include the hello.yml
file:include: '/hello.yml'
put it below the
stages
section -
add a new stage: included
-
add a new job: say_hello
belonging toincluded
with this content:say_hello: stage: included extends: .hello
-
commit your changes, it will trigger the pipeline -
observe the pipeline -
observe the output of the pipeline -
do the same thing for one of the other jobs of the pipeline -
commit your changes (again) -
observe the pipeline -
observe the output of the pipeline -
merge on master