Skip to content
Snippets Groups Projects
Commit 31b1868f authored by Chase Qi's avatar Chase Qi Committed by Stevan Radaković
Browse files

ci: allow to schedule jobs separately by SCHEDULED_TYPE


Signed-off-by: default avatarChase Qi <chase.qi@linaro.org>
parent e2c16c6c
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !252. Comments created here will be created in the context of that merge request.
...@@ -210,7 +210,7 @@ publish-seco-intel-b68: ...@@ -210,7 +210,7 @@ publish-seco-intel-b68:
rules: rules:
- if: '$CI_SQUAD_TOKEN == null' - if: '$CI_SQUAD_TOKEN == null'
when: never when: never
- if: '$CI_PIPELINE_SOURCE == "schedule"' - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "daily"
## ##
## Submit jobs to LAVA ## Submit jobs to LAVA
...@@ -631,7 +631,7 @@ build-npm-cspell: ...@@ -631,7 +631,7 @@ build-npm-cspell:
.oe-selftest-rules: .oe-selftest-rules:
rules: rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $OE_SELFTEST == "gcc" - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "weekly"
  • Maintainer

    I'm not sure of the variable drop here. Was that intentional?

  • Author Reporter

    @agherzan Thanks for the review. I replaced it with $SCHEDULED_TYPE == "weekly" intentionally. Now, I think it is good to use both so that we can distinguish weekly gcc test from other weekly jobs. I have added the $OE_SELFTEST == "gcc" back.

  • Maintainer

    Looks good!

  • Please register or sign in to reply
oe-selftest-gcc-qemu-linux-user: oe-selftest-gcc-qemu-linux-user:
extends: [.oe-selftest, .oe-selftest-rules] extends: [.oe-selftest, .oe-selftest-rules]
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
- if: '$CI_SQUAD_TOKEN == null' - if: '$CI_SQUAD_TOKEN == null'
when: never when: never
# Run the build when it is scheduled. # 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. # 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' - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i'
when: manual when: manual
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
- if: '$CI_SQUAD_TOKEN == null' - if: '$CI_SQUAD_TOKEN == null'
when: never when: never
# Run the build when it is scheduled. # Run the build when it is scheduled.
- if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "daily"
when: manual when: manual
# Do not run pipelines for draft merge requests unless manually triggered. # 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' - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i'
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
- lava-test.svg - lava-test.svg
rules: rules:
# Run the build when it is scheduled. # 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. # 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' - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i'
when: manual when: manual
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment