What is the preferred way to Integrate both Jenkins and GitLab?
What is the best way to do it?
GitLab has deploy keys. I have created deploy keys for all 30 Jenkins build agents.
I have added these deploy keys to each project. We only got 8 projects migrated from Gitolite at the moment. Adding all the deploy keys to 400+ projects is not a good way.
The GitLab Jenkins Integration documentation mentions creating a Jenkins user in GitLab.
Then that user could be added to each groups as Guest or Reporter.
Since we use GitLab Enterprise Edition, such a user would count towards the license.
With Gitolite we have configured to call the following URL for each repository on git push
I could manually create Webhooks in GitLab for each project triggering this URL, but that would a big feat, considering we have about 400+ repositories.
I have installed in Jenkins LTS. 2.263.1 these plugins:
GitLab (This plugin is not maintained)
GitLab Branch Source
In GitLab Project Settings > Integration Settings > Jenkins CI
Is there a better way to integrate Jenkins with GitLab, considering this plugin is no longer being maintained.
I would think the best way is to use the GitLab Branch Source plugin. Adding a GitLab group, then all projects in that group will be added to Jenkins. In theory (I have not tried it).