diff --git a/cicd/gitlab-ci.yml b/cicd/gitlab-ci.yml index cc1e8838616d57083d2682c9b353a89cee29de11..33058bb34899e7b37da01d0a407f1b589818e7e8 100644 --- a/cicd/gitlab-ci.yml +++ b/cicd/gitlab-ci.yml @@ -14,7 +14,6 @@ workflow: stages: - build - - trigger - release include: diff --git a/cicd/stages/build.yml b/cicd/stages/build.yml index 6365f61e5987a0d98ff95efc585c9a467f72b1e8..fbcdc4d3c8b1f277cd23041d079c749d1eb9c82a 100644 --- a/cicd/stages/build.yml +++ b/cicd/stages/build.yml @@ -74,35 +74,3 @@ build-wasm-multiarch: - cmake --install ${QDS_BUILD_PATH} - echo "PREVIOUS_JOB_ID=${CI_JOB_ID}" >> build.env - echo "JOB_TARGET_ARCH=${QDS_CI_JOB_TARGET_ARCH}" >> build.env - -.trigger-common: - stage : trigger - variables: # these variables are passed to the downstream pipeline - QDS_CI_PARENT_PIPELINE_ID: ${CI_PIPELINE_ID} - QDS_CI_ARTIFACT_JOB_ID: ${PREVIOUS_JOB_ID} - QDS_CI_PARENT_PROJECT_ID: ${CI_PROJECT_ID} - QDS_CI_PARENT_PIPELINE_ARCH: ${JOB_TARGET_ARCH} - needs: - - job: build-wasm-multiarch - artifacts: true - optional: true - trigger: - project: design-studio/design-viewer/design-viewer-web-service - branch: master - strategy: depend - forward: - yaml_variables: true - pipeline_variables: false - -trigger-test-deployment: - extends: .trigger-common - rules: - - if: $CI_COMMIT_TAG == null - - -trigger-prod-deployment: - extends: .trigger-common - rules: - - if: $CI_COMMIT_TAG - variables: - QDS_CI_PARENT_PIPELINE_RELEASE_TAG: $CI_COMMIT_TAG diff --git a/cicd/stages/trigger.yml b/cicd/stages/trigger.yml new file mode 100644 index 0000000000000000000000000000000000000000..c01011c1808cfce4d031892d108130fdc1074ba9 --- /dev/null +++ b/cicd/stages/trigger.yml @@ -0,0 +1,34 @@ +# these are trigger jobs for the downstream pipeline in Design Viewer Web Service project +.trigger-common: + variables: # these variables are passed to the downstream pipeline + QDS_CI_PARENT_PIPELINE_ID: ${CI_PIPELINE_ID} + QDS_CI_ARTIFACT_JOB_ID: ${PREVIOUS_JOB_ID} + QDS_CI_PARENT_PROJECT_ID: ${CI_PROJECT_ID} + QDS_CI_PARENT_PIPELINE_ARCH: ${JOB_TARGET_ARCH} + needs: + - job: build-wasm-multiarch + artifacts: true + optional: true + trigger: + project: design-studio/design-viewer/design-viewer-web-service + branch: master + strategy: depend + forward: + yaml_variables: true + pipeline_variables: false + +trigger-test-deployment: + extends: .trigger-common + stage: build + rules: + - if: $CI_COMMIT_TAG == null + +trigger-prod-deployment: + extends: .trigger-common + stage: release + rules: + - if: $CI_COMMIT_TAG + needs: + - job: create-release + variables: + QDS_CI_PARENT_PIPELINE_RELEASE_TAG: $CI_COMMIT_TAG