Migrate license_management artifacts to license_scanning
This is a follow-up from of #8912 (closed)
For license_management job we have a separate job artifact
It differs from license_scanning artifact only in report type. We have to migrate existing records to the new license_scanning report type.
Problem to solve
Because AutoDevOps still use the old license_management template, we're expecting to get new license_management entities even in 13.0. So this migration should be run after 13.0.
Proposed Implementation plan
- In the script clean up all ci jobs that have both
license_scanningandlicense_managementartifacts and leave only one of them. (Such records were possible in the past, but they can't be migrated later due to unique index on ci job and artifact type). - In the same script change
report_typefor alllicense_managementartifacts tolicense_scanning. - Clean up all code that uses
license_managementartifact type. - Remove this TODO
Testing
License scanning requires an updated/new end to end test. This is partially covered off by #219461 (closed)
Edited by Tetiana Chupryna