gitlab-ci: Do not create the "success" job when the test-docs job exists

It's redundant in that case.

v2:
* Adapt to v2 of test-docs job rules.

Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>
This commit is contained in:
Michel Dänzer 2020-06-22 11:16:17 +02:00 committed by Marge Bot
parent 8e2cb8ef27
commit 6cba468b5e
1 changed files with 9 additions and 5 deletions

View File

@ -97,11 +97,15 @@ test-docs:
success:
stage: success
image: debian:stable-slim
only:
- merge_requests
except:
changes:
*all_paths
rules:
- if: '$CI_PROJECT_NAMESPACE == "mesa"'
when: never
- if: '$GITLAB_USER_LOGIN == "marge-bot"'
changes: *docs-or-ci
when: never
- changes: *all_paths
when: never
- when: on_success
variables:
GIT_STRATEGY: none
script: