Skip to content

Commit a6504a6

Browse files
committed
Add downstream pipeline to build&test GS
1 parent 2c7a4dd commit a6504a6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.gitlab-ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ variables:
44

55
stages:
66
- build_and_test
7+
- run_downstream_ci
78

89
.detect-branches:
910
# Version 2.
@@ -156,3 +157,23 @@ build_and_test:
156157
reports:
157158
junit: xunit_output.xml
158159
lsif: dump.lsif
160+
161+
.run_ci_common: &run_ci_common
162+
stage: run_downstream_ci
163+
rules:
164+
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
165+
when: manual
166+
trigger:
167+
strategy: depend
168+
inherit:
169+
variables: false
170+
variables:
171+
ACI_UPSTREAM_PROJECT_PATH: $CI_PROJECT_PATH
172+
ACI_UPSTREAM_REF_NAME: $CI_COMMIT_REF_NAME
173+
ACI_UPSTREAM_SOURCE_BRANCH: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
174+
ACI_UPSTREAM_TARGET_BRANCH: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
175+
176+
run_gs_ci:
177+
<<: *run_ci_common
178+
trigger:
179+
project: eng/ide/gnatstudio

0 commit comments

Comments
 (0)