ci/farms: enabled Microsoft job only when conditions are met
Otherwise it gets run by default on newly pushed fork branch. In general, this is copy-paste of `.container-rules`. Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24604>
This commit is contained in:

committed by
Marge Bot

parent
19d318d88a
commit
9d45a25b80
@@ -28,9 +28,23 @@
|
||||
- exists: [ .ci-farms-disabled/microsoft ]
|
||||
when: never
|
||||
- changes: [ .ci-farms-disabled/microsoft ]
|
||||
if: '$CI_PIPELINE_SOURCE != "schedule"'
|
||||
if: '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_BRANCH'
|
||||
when: on_success
|
||||
- !reference [.microsoft-farm-rules, rules]
|
||||
- changes: [ .ci-farms-disabled/microsoft ]
|
||||
if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||
when: on_success
|
||||
- changes: [ .ci-farms-disabled/microsoft ]
|
||||
if: '$CI_PROJECT_NAMESPACE == "mesa" && $GITLAB_USER_LOGIN != "marge-bot" && $CI_COMMIT_BRANCH'
|
||||
when: on_success
|
||||
- changes: [ .ci-farms-disabled/* ]
|
||||
if: '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_BRANCH'
|
||||
when: never
|
||||
- changes: [ .ci-farms-disabled/* ]
|
||||
if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||
when: never
|
||||
- changes: [ .ci-farms-disabled/* ]
|
||||
if: '$CI_PROJECT_NAMESPACE == "mesa" && $GITLAB_USER_LOGIN != "marge-bot" && $CI_COMMIT_BRANCH'
|
||||
when: never
|
||||
|
||||
|
||||
.collabora-farm-rules:
|
||||
|
Reference in New Issue
Block a user