backport v2023dev1 -> v2022: gitlab-ci: Prepare for using the new job generator
This is part of the work in https://phabricator.apertis.org/T7900.
This is a backport of !474 (merged)
Depends on tests/apertis-test-cases!418 (merged)
Edited by Detlev Casanova