Skip to content

Commit

Permalink
Extend pipeline slide with triggers and rules
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Apr 12, 2023
1 parent 948ce04 commit 9facd5d
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions day2/03_CI/04_Gitlab_Pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,14 @@ Pipeline schedules can be used to also run pipelines at specific intervals.

Try it out with the trainer.

!SLIDE smbullets
# GitLab Pipelines: Triggers
!SLIDE
# GitLab Pipelines: Triggers and Rules

We can use the `trigger` keyword to start other pipelines:

* Multi-project pipeline
* Child pipeline
* Multi-project pipeline or Child pipeline

We can use the `rules` keyword include or exclude jobs.

Example:

Expand All @@ -204,6 +205,23 @@ Example:
- changes:
- a/*

~~~SECTION:handouts~~~
****
Rules are evaluated in order until the first match when the pipeline is created. Depending on the configuration, a job is either included or excluded.
The `rules` keyword accepts an array of rules defined with:
* if
* changes
* exists
* allow_failure
* variables
* when
~~~ENDSECTION~~~

!SLIDE smbullets small
# Lab ~~~SECTION:MAJOR~~~.~~~SECTION:MINOR~~~: CI: Pipeline Rules

Expand Down

0 comments on commit 9facd5d

Please sign in to comment.