Skip to content

Commit

Permalink
ci: inherit $PARENT_PIPELINE_ID for child pipelines to refer to in …
Browse files Browse the repository at this point in the history
…the future
  • Loading branch information
CMCDragonkai committed Jul 18, 2022
1 parent 3e11b15 commit 0684b82
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,15 @@ check:test:
stage: check
needs:
- check:test-generate
inherit:
variables: false
trigger:
include:
- artifact: tmp/check-test.yml
job: check:test-generate
strategy: depend
inherit:
variables: false
variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
rules:
# Runs on feature commits and ignores version commits
- if: $CI_COMMIT_BRANCH =~ /^feature.*$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
Expand Down Expand Up @@ -182,13 +184,15 @@ build:platforms:
stage: build
needs:
- build:platforms-generate
inherit:
variables: false
trigger:
include:
- artifact: tmp/build-platforms.yml
job: build:platforms-generate
strategy: depend
inherit:
variables: false
variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
rules:
# Runs on staging commits and ignores version commits
- if: $CI_COMMIT_BRANCH == 'staging' && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
Expand Down

0 comments on commit 0684b82

Please sign in to comment.