Skip to content
Snippets Groups Projects
Commit 41453d70 authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

.ostc-ci: handle scheduled builds and draft pull requests


Scheduled builds will allow us to re-test what's in HEAD without opening
a pull request. Making drafts start in manual mode will conserve
resources without limiting one's ability to iterate on selective
targets.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent d290831b
No related branches found
No related tags found
No related merge requests found
......@@ -58,9 +58,15 @@ aggregate-docs:
# Customize the .bitbake-workspace job to set the rules governing when a build
# is attempted to: modifications (changes) to the pipeline, meta-layers,
# flavours and assets or to placement of a tag on a commit.
# flavours and assets OR to placement of a tag on a commit OR when a job is
# scheduled. In addition, draft merge requests will no longer start the heavy
# build jobs automatically, giving an option to the developer, to start the
# desired jobs manually.
.bitbake-workspace:
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i'
when: manual
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes:
- assets/**/*
......
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