They should apply to all job that extend it as the 2 jobs that depend on
`.build` but not on `.build fedora x86_64` is
`build nodebug fedora x86_64` which pulls `build static nodebug fedora x86_64`
both jobs should be manual on `main` and they should run only if some
files "modules_changes" happened
Also make sure we do no automatically run job on `main` branches from forks
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1141>
# If the MR is assigned to the Merge bot, trigger the pipeline automatically
- if: '$CI_MERGE_REQUEST_ASSIGNEES == "gstreamer-merge-bot"'
# Alway run tests post merged
# If the MR is assigned to the Merge bot, trigger the pipeline automatically
- if: '$CI_MERGE_REQUEST_ASSIGNEES == "gstreamer-merge-bot"'
# Alway run tests post merged
- - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+ - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
# When the assignee isn't the merge bot, require an explicit action to trigger the pipeline
# to avoid wasting CI resources
- if: '$CI_MERGE_REQUEST_ASSIGNEES != "gstreamer-merge-bot"'
# When the assignee isn't the merge bot, require an explicit action to trigger the pipeline
# to avoid wasting CI resources
- if: '$CI_MERGE_REQUEST_ASSIGNEES != "gstreamer-merge-bot"'
when: "always"
paths:
- 'meson-logs/'
when: "always"
paths:
- 'meson-logs/'
+ rules:
+ # If this matches, it means the pipeline is running against either the main
+ # or a stable branch, so make it manual
+ - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+ when: manual
+ - changes:
+ *modules_changes
.build fedora x86_64:
extends:
.build fedora x86_64:
extends:
- "fedora amd64 docker"
variables:
MESON_ARGS: *simple_build
- "fedora amd64 docker"
variables:
MESON_ARGS: *simple_build
- rules:
- # If this matches, it means the pipeline is running against either the main
- # or a stable branch, so make it manual
- - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
- when: manual
- - changes:
- *modules_changes
build nodebug fedora x86_64:
extends:
build nodebug fedora x86_64:
extends:
rules:
# If this matches, it means the pipeline is running against either the main
# or a stable branch, so make it manual
rules:
# If this matches, it means the pipeline is running against either the main
# or a stable branch, so make it manual
- - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+ - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
when: manual
- changes:
*modules_changes
when: manual
- changes:
*modules_changes
rules:
# If this matches, it means the pipeline is running against either the main
# or a stable branch, so make it manual
rules:
# If this matches, it means the pipeline is running against either the main
# or a stable branch, so make it manual
- - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+ - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
when: manual
- changes:
- "*"
when: manual
- changes:
- "*"
-# This jobs runs in gsrtreamer namespace when after the merge into main branch.
+# This jobs runs in gstreamer namespace when after the merge into main branch.
# The produced artifact is later used to automatically update the web page.
#
documentation:
# The produced artifact is later used to automatically update the web page.
#
documentation:
needs:
- "trigger"
rules:
needs:
- "trigger"
rules:
- - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+ # Never run post merge, we have the `documentation` always running for that
+ - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
when: never
- changes:
- .gitlab-ci.yml
when: never
- changes:
- .gitlab-ci.yml
- ci/gitlab/trigger_cerbero_pipeline.py
rules:
- ci/gitlab/trigger_cerbero_pipeline.py
rules:
- - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+ # Never run post merge
+ - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
when: never
- changes:
- .gitlab-ci.yml
when: never
- changes:
- .gitlab-ci.yml