2020-09-25 08:14:05 +00:00
|
|
|
workflow:
|
|
|
|
rules:
|
2020-11-04 07:12:22 +00:00
|
|
|
# Disable those non-protected push triggered pipelines
|
2023-09-08 12:39:12 +00:00
|
|
|
- if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && $CI_COMMIT_TAG !~ /^qa-test/ && $CI_PIPELINE_SOURCE == "push"'
|
2020-09-25 08:14:05 +00:00
|
|
|
when: never
|
2023-11-01 11:43:19 +00:00
|
|
|
# when running merged result pipelines, CI_COMMIT_SHA represents the temp commit it created.
|
|
|
|
# Please use PIPELINE_COMMIT_SHA at all places that require a commit sha of the original commit.
|
2021-10-28 06:12:40 +00:00
|
|
|
- if: $CI_OPEN_MERGE_REQUESTS != null
|
|
|
|
variables:
|
|
|
|
PIPELINE_COMMIT_SHA: $CI_MERGE_REQUEST_SOURCE_BRANCH_SHA
|
2023-05-24 02:53:57 +00:00
|
|
|
IS_MR_PIPELINE: 1
|
2021-10-28 06:12:40 +00:00
|
|
|
- if: $CI_OPEN_MERGE_REQUESTS == null
|
|
|
|
variables:
|
|
|
|
PIPELINE_COMMIT_SHA: $CI_COMMIT_SHA
|
2023-05-24 02:53:57 +00:00
|
|
|
IS_MR_PIPELINE: 0
|
2020-09-25 08:14:05 +00:00
|
|
|
- when: always
|
|
|
|
|
2023-09-26 11:24:26 +00:00
|
|
|
# Place the default settings in `.gitlab/ci/common.yml` instead
|
2021-10-26 10:34:55 +00:00
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
include:
|
2023-11-24 07:36:41 +00:00
|
|
|
- '.gitlab/ci/danger.yml'
|
2023-09-26 11:24:26 +00:00
|
|
|
- '.gitlab/ci/common.yml'
|
2021-02-09 04:31:38 +00:00
|
|
|
- '.gitlab/ci/rules.yml'
|
2022-06-07 01:05:15 +00:00
|
|
|
- '.gitlab/ci/upload_cache.yml'
|
2021-02-09 04:31:38 +00:00
|
|
|
- '.gitlab/ci/docs.yml'
|
|
|
|
- '.gitlab/ci/static-code-analysis.yml'
|
|
|
|
- '.gitlab/ci/pre_check.yml'
|
|
|
|
- '.gitlab/ci/build.yml'
|
2023-09-08 12:39:12 +00:00
|
|
|
- '.gitlab/ci/integration_test.yml'
|
2021-02-09 04:31:38 +00:00
|
|
|
- '.gitlab/ci/host-test.yml'
|
|
|
|
- '.gitlab/ci/deploy.yml'
|