Backfill job environments
What does this MR do and why?
Backfill job environments
When a CI job references an environment (it uses the environment
keyword in the CI template) a new Environments::Job
record is now
created to persist a link to the environment (added in !198638 (merged), and rolled out in #556803 (closed)).
This migration creates records for historical CI jobs that existed prior to this persisted link being added. This means that jobs will no longer rely on the associated metadata for environment information, which allows old metadata to be removed.
References
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Tiger Watson