diff --git a/.gitlab-ci/farm-rules.yml b/.gitlab-ci/farm-rules.yml index 2fcc198476d..339baf0468b 100644 --- a/.gitlab-ci/farm-rules.yml +++ b/.gitlab-ci/farm-rules.yml @@ -36,6 +36,7 @@ # collabora | lava | @daniels, @sergi # igalia | baremetal/poe-powered, ci-tron | @jasuarez, @chema # lima | lava | @enunes +# lumag | ci-tron | @lumag # microsoft | custom | @jenatali, @alatiera # ondracka | ci-tron | @ondracka # pengutronix | lava | @hnez, @lynxeye @@ -292,6 +293,27 @@ - !reference [.pengutronix-farm-rules, rules] +.lumag-farm-rules: + rules: + - exists: [ .ci-farms-disabled/lumag ] + when: never + - changes: [ .ci-farms-disabled/lumag ] + if: '$CI_PIPELINE_SOURCE != "schedule"' + when: on_success + - changes: [ .ci-farms-disabled/* ] + if: '$CI_PIPELINE_SOURCE != "schedule"' + when: never + +.lumag-farm-manual-rules: + rules: + - exists: [ .ci-farms-disabled/lumag ] + when: never + - changes: [ .ci-farms-disabled/lumag ] + if: '$CI_PIPELINE_SOURCE != "schedule"' + when: never + - !reference [.lumag-farm-rules, rules] + + # Skip container & build jobs when disabling any farm, and run them if any # farm gets re-enabled. # Only apply these rules in MR context, because otherwise we get a false @@ -348,6 +370,10 @@ changes: [ .ci-farms-disabled/pengutronix ] exists: [ .ci-farms-disabled/pengutronix ] when: never + - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' + changes: [ .ci-farms-disabled/lumag ] + exists: [ .ci-farms-disabled/lumag ] + when: never # Any other change to ci-farms/* means some farm is getting re-enabled. # Run jobs in Marge pipelines (and let it fallback to manual otherwise) - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $GITLAB_USER_LOGIN == "marge-bot"'