File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1- # Pipelines runs only on branches and tags.
2- # Disable merge request pipelines, pipelines for merge results and merge trains.
31include :
4- - template : ' Workflows/Branch-Pipelines.gitlab-ci.yml'
52 - project : ' Sharpmake/SharpmakeExtended'
63 file : ' build/sharpmake-ci.yml'
74
5+ workflow :
6+ rules :
7+ # Enable merge request pipelines.
8+ - if : $CI_PIPELINE_SOURCE == "merge_request_event"
9+ # Avoid duplicate pipelines when pushing in a branch.
10+ - if : $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
11+ when : never
12+ # Else run pipelines for branches and tags.
13+ - if : $CI_COMMIT_BRANCH
14+ - if : $CI_COMMIT_TAG
15+
816stages :
917 - build
1018 - test
Original file line number Diff line number Diff line change @@ -93,6 +93,9 @@ foreach ($sample in $samplesDef.Samples)
9393
9494 # Merge sample properties into a single hash table.
9595 $sampleJob = $osProperties + @ {
96+ rules = @ (
97+ @ { if = ' $CI_PIPELINE_SOURCE == "parent_pipeline"' }
98+ )
9699 artifacts = [PSCustomObject ]@ {
97100 when = ' on_failure'
98101 untracked = $true
You can’t perform that action at this time.
0 commit comments