Update cache-assets-base and cache-workhorse to exit with custom exit code
What does this MR do and why?
Part 2 of Draft: Add a script file for custom exit code (!177976 - closed).
Impacted jobs are:
cache-assets:test
cache-assets:production
cache-workhorse
This must merge after !179915 (merged)
Re: Add more custom exit codes for CI/CD failures (#512594)
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Tested the following 3 scenarios:
-
Script exited with status 0: job exited with 0
-
Script exited with status 1: job exited with status 1 without changing exit code
-
Script exited with status 1 and standard output includes string
Error: EEXIST: file already exists
: job exited with custom status 166