We have a number of Java projects hosted on Gerrrit that we don't want to migrate to Gitlab (at least not yet). It should be reasonably easy to modify the current CI jobs to publish to a Gitlab hosted package registry instead of Archiva.
Key points
- Current jobs are defined in https://gerrit.wikimedia.org/r/plugins/gitiles/integration/config/+/refs/heads/master/jjb/job-templates.yaml
- Gitlab does not seem to provide a global package registry, we might need to create a project dedicated to hosting artifacts that are not gitlab projects
- We need an API token created in Gitlab with proper authorization and exposed in our Jenkins CI
AC
- Java projects hosted on Gerrit have a CI job that published to a Gitlab package registry