ci: made BEC a child pipeline

This commit is contained in:
wakonig_k 2024-07-25 15:53:44 +02:00
parent 0f6494ae2c
commit 9eb67a0900

View File

@ -68,6 +68,8 @@ formatter:
- isort --check --diff ./ - isort --check --diff ./
- black --check --diff --color ./ - black --check --diff --color ./
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "parent_pipeline"'
when: never
- if: $CI_PROJECT_PATH == "bec/ophyd_devices" - if: $CI_PROJECT_PATH == "bec/ophyd_devices"
interruptible: true interruptible: true
@ -85,6 +87,8 @@ pylint:
- ./pylint/ - ./pylint/
expire_in: 1 week expire_in: 1 week
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "parent_pipeline"'
when: never
- if: $CI_PROJECT_PATH == "bec/ophyd_devices" - if: $CI_PROJECT_PATH == "bec/ophyd_devices"
interruptible: true interruptible: true
@ -119,6 +123,8 @@ pylint-check:
- ./pylint/ - ./pylint/
expire_in: 1 week expire_in: 1 week
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "parent_pipeline"'
when: never
- if: $CI_PROJECT_PATH == "bec/ophyd_devices" - if: $CI_PROJECT_PATH == "bec/ophyd_devices"
interruptible: true interruptible: true
@ -176,12 +182,16 @@ tests-3.12:
allow_failure: true allow_failure: true
trigger_bec: trigger_bec:
needs: []
trigger: trigger:
project: bec/bec
strategy: depend strategy: depend
branch: $BEC_CORE_BRANCH include:
- project: bec/bec
ref: $BEC_CORE_BRANCH
file: /.gitlab-ci.yml
variables: variables:
OPHYD_DEVICES_BRANCH: $CI_COMMIT_REF_NAME OPHYD_DEVICES_BRANCH: $CI_COMMIT_REF_NAME
CHILD_PIPELINE_BRANCH: $BEC_CORE_BRANCH
rules: rules:
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" && $CI_PROJECT_PATH == "bec/ophyd_devices"' - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" && $CI_PROJECT_PATH == "bec/ophyd_devices"'
interruptible: true interruptible: true