Skip to content
Snippets Groups Projects
Commit 37b396e8 authored by Andrii Sosiuk's avatar Andrii Sosiuk
Browse files

YT-247: Automate Initiation of Build Stages in Scheduled Pipelines

  Enable automatic initiation of the build stage for the SDK
  and the test stage for pipelines within scheduled pipelines.
parent e3a76466
No related branches found
No related tags found
1 merge request!423YT-247: Automate Initiation of Build Stages in Scheduled Pipelines
Pipeline #160970 passed with stage
in 17 minutes and 27 seconds
......@@ -69,7 +69,7 @@ yocto-pipeline:
PACKAGE_TYPE: image
TEST_STAGE: "manual"
rules:
- if: '$CI_COMMIT_TAG'
- if: '$CI_COMMIT_TAG || $CI_PIPELINE_SOURCE == "schedule"'
variables:
TEST_STAGE: "auto"
- !reference [.build-pipeline, rules]
......@@ -86,7 +86,7 @@ sdk-pipeline:
MANUAL_BUILD: "true"
PACKAGE_TYPE: sdk
rules:
- if: '$CI_COMMIT_TAG'
- if: '$CI_COMMIT_TAG || $CI_PIPELINE_SOURCE == "schedule"'
variables:
MANUAL_BUILD: "false"
DELAY_BUILD: "true"
......
......@@ -38,12 +38,13 @@ workflow:
.full_build_pipeline:
rules:
# Run the full build pipeline on merge requests and tags
# or if explicitly triggered by the API or the web button.
# or if scheduled or explicitly triggered by the API or the web button.
- if: $CI_MERGE_REQUEST_IID
- if: $CI_COMMIT_TAG
- if: $CI_PIPELINE_SOURCE == "api"
- if: $CI_PIPELINE_SOURCE == "pipeline"
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "schedule"
.short_master_pipeline:
rules:
......@@ -56,6 +57,8 @@ workflow:
when: never
- if: $CI_PIPELINE_SOURCE == "web"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: $CI_COMMIT_REF_NAME == $MASTER_BRANCH
# --------------------------------------------------------------------------------------
......
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