Skip to content

Set CI_JOB_ERROR in after_script with a result of user script

What does this MR do?

adds CI_JOB_ERROR environment variable to after_script which can be used to find whether the was an error in user script or not

Why was this MR needed?

after_script might want to alter behaviour depending on success/failure of a job

What are the relevant issue numbers?

#3455 (closed) #1538 https://docs.gitlab.com/ee/ci/variables/#comment-3787825948

Merge request reports