From e6c41c914f4914831fabcaf2be754aa9dc89f962 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 29bcce57..ecd57958 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -210,7 +210,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 @@ -607,7 +607,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 87ae423f..bd5903b3 100644 --- a/.oniro-ci/test-generic.yaml +++ b/.oniro-ci/test-generic.yaml @@ -102,7 +102,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 @@ -138,7 +138,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' @@ -178,7 +178,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