Fix packages cleanup hardcode endpoint
related MR: ci: Add a packages-cleanup
job to clean up assets
packages not downloaded in the last 7 days !100205 (merged)
What does this MR do and why?
In !100205 (merged), config.endpoint
in packages-cleanup-job
and review-cleanup-job
uses hardcode path that makes packages-cleanup-job
and review-cleanup-job
fail when gitlab instance is in other server host like jihulab.com
.
So, we should use the server_host
environment variable instead of hardcode in config.endpoint
.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
packages-cleanup
passes (need to set CACHE_ASSETS_AS_PACKAGE
to true
)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.