external stage (commit status) falsely marked as failed
Summary
Hello.
The external stage (commit status) is falsely marked as failed.
The pipeline itself is marked as passed.
Steps to reproduce
- set a commit status to
failed - set it to
success
(It seems like our local installation requires a status with description to show this behaviour.)
.gitlab-ci.yml
stages:
- test
test:
stage: test
script:
- |
curl \
--request POST \
--header "PRIVATE-TOKEN: $PRIVATE_API_TOKEN" \
"https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/statuses/$CI_COMMIT_SHA?state=failed&description=error"
- |
curl \
--request POST \
--header "PRIVATE-TOKEN: $PRIVATE_API_TOKEN" \
"https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/statuses/$CI_COMMIT_SHA?state=success&description=ok"
Example Project
https://gitlab.com/s.seypt/pipeline-commit-status-bug
What is the current bug behavior?
Gitlab indicates failed.
What is the expected correct behavior?
Gitlab indicates success.
Output of checks
This bug happens on GitLab.com


