Skip to content

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

  1. In the script clean up all ci jobs that have both license_scanning and license_management artifacts 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).
  2. In the same script change report_type for all license_management artifacts to license_scanning.
  3. Clean up all code that uses license_management artifact type.
  4. 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