Correctly set CI_JOB_STATUS to timedout/canceled when appropriate
What does this MR do?
Correctly sets CI_JOB_STATUS to timedout
/canceled
when appropriate
Why was this MR needed?
CI_JOB_STATUS
was not correctly being updated for after_script
to make use of in the context of timeouts and cancelations.
What's the best way to test this MR?
Updated existing abort tests to accomodate.
Manual:
# check includes: "step_script could not run to completion"
# check includes: "job status timedout"
# check failure reason is: job_execution_timeout
timeout/script_timeout:
variables:
RUNNER_SCRIPT_TIMEOUT: 10s
script:
- sleep 20
after_script:
- echo "job status $CI_JOB_STATUS"
What are the relevant issue numbers?
Closes #37485