CI job is marked as succeeded though artifact upload encounters fatal error
gitlab-ce v9.4.4
Summary
After running a build CI job, which is supposed to upload an artifact. If the upload fails the job is still marked as successful, and pipeline continues. Though other jobs in the pipeline depends on this artifact.
Steps to reproduce
Create a CI task which create a huge artifact, which will the be rejected while uploading due to its size.
What is the current bug behavior?
The job is marked as succeeded
What is the expected correct behavior?
I would expect the job to be failed, and thus blocking the rest of the pipeline.
Relevant logs and/or screenshots
ERROR: Uploading artifacts to coordinator... too large archive id=5560 responseStatus=413 Request Entity Too Large status=413 Request Entity Too Large token=G3s-yF7G
FATAL: Too large
Job succeeded