.gitlab-ci.yml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. workflow:
  2. rules:
  3. # Disable those non-protected push triggered pipelines
  4. - 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"'
  5. when: never
  6. # when running merged result pipelines, CI_COMMIT_SHA represents the temp commit it created.
  7. # Please use PIPELINE_COMMIT_SHA at all places that require a commit sha of the original commit.
  8. - if: $CI_OPEN_MERGE_REQUESTS != null
  9. variables:
  10. PIPELINE_COMMIT_SHA: $CI_MERGE_REQUEST_SOURCE_BRANCH_SHA
  11. IS_MR_PIPELINE: 1
  12. - if: $CI_OPEN_MERGE_REQUESTS == null
  13. variables:
  14. PIPELINE_COMMIT_SHA: $CI_COMMIT_SHA
  15. IS_MR_PIPELINE: 0
  16. - when: always
  17. # Place the default settings in `.gitlab/ci/common.yml` instead
  18. include:
  19. - '.gitlab/ci/common.yml'
  20. - '.gitlab/ci/rules.yml'
  21. - '.gitlab/ci/upload_cache.yml'
  22. - '.gitlab/ci/docs.yml'
  23. - '.gitlab/ci/static-code-analysis.yml'
  24. - '.gitlab/ci/pre_check.yml'
  25. - '.gitlab/ci/build.yml'
  26. - '.gitlab/ci/integration_test.yml'
  27. - '.gitlab/ci/host-test.yml'
  28. - '.gitlab/ci/target-test.yml'
  29. - '.gitlab/ci/deploy.yml'