Explorar o código

gitlab-ci: configure development documentation and continuous pipelines

Use the default cancellation policy so that continuous pipelines that
have started can finish.
Brad King hai 1 mes
pai
achega
537828483d
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      .gitlab/rules.yml

+ 10 - 0
.gitlab/rules.yml

@@ -68,6 +68,16 @@ workflow:
               on_new_commit: none
           variables:
               CMAKE_CI_PIPELINE_NAME: 'Schedule "$CI_PIPELINE_SCHEDULE_DESCRIPTION"'
+        # Run for development documentation.
+        - if: '$CMAKE_CI_PROJECT_MAIN_BRANCH != null && $CI_COMMIT_BRANCH != null && $CMAKE_CI_PROJECT_MAIN_BRANCH == $CI_COMMIT_BRANCH'
+          when: always
+          variables:
+              CMAKE_CI_PIPELINE_NAME: 'Development documentation on branch "$CI_COMMIT_REF_NAME"'
+        # Run for continuous testing of staging branch.
+        - if: '$CMAKE_CI_PROJECT_CONTINUOUS_BRANCH != null && $CI_COMMIT_BRANCH != null && $CMAKE_CI_PROJECT_CONTINUOUS_BRANCH == $CI_COMMIT_BRANCH'
+          when: always
+          variables:
+              CMAKE_CI_PIPELINE_NAME: 'Continuous branch "$CI_COMMIT_REF_NAME"'
         # Run for protected branches.
         - if: '$CI_COMMIT_REF_PROTECTED == "true"'
           when: always