mirror of
https://github.com/qemu/qemu.git
synced 2024-12-03 16:53:53 +08:00
2d9e45b9cb
Per GitLab documentation [*]: "rules replaces only/except and they can’t be used together in the same job." Since the 'rules' syntax is more powerful and we are already using it, convert the check-dco/check-patch jobs so no job use the 'only/ except' syntax. [*] https://docs.gitlab.com/ee/ci/yaml/#rules Inspired-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Willian Rampazzo <willianr@redhat.com> Message-Id: <20210525132418.4133235-3-f4bug@amsat.org>
27 lines
691 B
YAML
27 lines
691 B
YAML
check-patch:
|
|
stage: build
|
|
image: $CI_REGISTRY_IMAGE/qemu/centos8:latest
|
|
needs:
|
|
job: amd64-centos8-container
|
|
script: .gitlab-ci.d/check-patch.py
|
|
variables:
|
|
GIT_DEPTH: 1000
|
|
rules:
|
|
- if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
|
when: never
|
|
- when: on_success
|
|
allow_failure: true
|
|
|
|
check-dco:
|
|
stage: build
|
|
image: $CI_REGISTRY_IMAGE/qemu/centos8:latest
|
|
needs:
|
|
job: amd64-centos8-container
|
|
script: .gitlab-ci.d/check-dco.py
|
|
variables:
|
|
GIT_DEPTH: 1000
|
|
rules:
|
|
- if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
|
when: never
|
|
- when: on_success
|