From 107d7122e746706ba4daf597654912ccfa241d5b Mon Sep 17 00:00:00 2001 From: Lorenzo Pagliai <lorenzo.pagliai@seco.com> Date: Sun, 4 Dec 2022 15:24:38 +0000 Subject: [PATCH] Bug fix on trigger on schedule rule: * This commit insert the schedule in the workflow rules allowing to trigger build, deploy, notify on a scheduled basis * Bug fix on variables --- manifest-pipeline-yocto.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/manifest-pipeline-yocto.yml b/manifest-pipeline-yocto.yml index 8c2c064..7c1ca68 100644 --- a/manifest-pipeline-yocto.yml +++ b/manifest-pipeline-yocto.yml @@ -49,6 +49,7 @@ workflow: - if: $CI_PIPELINE_SOURCE == "api" - if: $CI_PIPELINE_SOURCE == "pipeline" - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" # Do not run pipelines for merge requests - if: $CI_MERGE_REQUEST_IID when: never @@ -129,7 +130,15 @@ retrigger: extends: - .infrastructure - .full_build_pipeline + rules: + #Do not run on schedule + - if: $CI_PIPELINE_SOURCE == "schedule" + when: never stage: retrigger + rules: + - if: $CI_PIPELINE_SOURCE == "pipeline" + - if: $CI_PIPELINE_SOURCE == "schedule" + when: never script: - .gitlab-ci/scripts/retrigger_integrating_projects.py --gitlab-url=${CI_SERVER_URL} @@ -148,7 +157,7 @@ retrigger: - .full_build_pipeline rules: - if: $CI_PIPELINE_SOURCE == "pipeline" - when: "manual" + when: manual - if: $CI_PIPELINE_SOURCE == "schedule" stage: build timeout: !reference [variables, BUILD_TIMEOUT] -- GitLab