diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 48fbf41a..432f20e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,8 +4,13 @@ include: - '.gitlab-ci-check-commits.yml' - '.gitlab-ci-github-status-updates.yml' +variables: + MENDER_MCU_REVISION: ${CI_COMMIT_BRANCH} + MENDER_MCU_INTEGRATION_REVISION: main + stages: - test + - trigger - publish variables: @@ -131,6 +136,17 @@ test:static:release: variables: BUILD_TYPE: Release +trigger:mender-mcu-integration: + rules: + - if: $CI_COMMIT_BRANCH =~ /^(pr_[0-9]+)$/ + variables: + MENDER_MCU_REVISION: ${CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_SHA} + - when: always + trigger: + project: Northern.tech/Mender/mender-mcu-integration + branch: $MENDER_MCU_INTEGRATION_REVISION + strategy: depend + publish:tests: stage: publish image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.11