From 2254b3c52fef35fcb5079d9875b76809e2e2f6cb Mon Sep 17 00:00:00 2001 From: Chase Qi <chase.qi@linaro.org> Date: Fri, 5 Aug 2022 12:12:52 +0800 Subject: [PATCH] ci: allow to schedule jobs separately by SCHEDULED_TYPE Signed-off-by: Chase Qi <chase.qi@linaro.org> --- .gitlab-ci.yml | 4 ++-- .oniro-ci/test-generic.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 040842b8..c4b6e3b6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -205,7 +205,7 @@ publish-seco-intel-b68: rules: - if: '$CI_SQUAD_TOKEN == null' when: never - - if: '$CI_PIPELINE_SOURCE == "schedule"' + - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "daily" ## ## Submit jobs to LAVA @@ -602,7 +602,7 @@ build-npm-cspell: .oe-selftest-rules: rules: - - if: $CI_PIPELINE_SOURCE == "schedule" && $OE_SELFTEST == "gcc" + - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "weekly" oe-selftest-gcc-qemu-linux-user: extends: [.oe-selftest, .oe-selftest-rules] diff --git a/.oniro-ci/test-generic.yaml b/.oniro-ci/test-generic.yaml index 3f93cf65..a09cb50d 100644 --- a/.oniro-ci/test-generic.yaml +++ b/.oniro-ci/test-generic.yaml @@ -100,7 +100,7 @@ - if: '$CI_SQUAD_TOKEN == null' when: never # Run the build when it is scheduled. - - if: $CI_PIPELINE_SOURCE == "schedule" + - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "daily" # Do not run pipelines for draft merge requests unless manually triggered. - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i' when: manual @@ -136,7 +136,7 @@ - if: '$CI_SQUAD_TOKEN == null' when: never # Run the build when it is scheduled. - - if: $CI_PIPELINE_SOURCE == "schedule" + - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "daily" when: manual # Do not run pipelines for draft merge requests unless manually triggered. - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i' @@ -176,7 +176,7 @@ - lava-test.svg rules: # Run the build when it is scheduled. - - if: $CI_PIPELINE_SOURCE == "schedule" + - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "daily" # Do not run pipelines for draft merge requests unless manually triggered. - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i' when: manual -- GitLab