In this video I explain how to connect Jenkins and GitLab.
Tutorial
-
Go to GitLab website and copy the URL. In my case it is 10.10.0.119
-
Login via SSH to Jenkins server and copy the certificate from GitLab
|
|
|
|
|
|
|
|
- Import GitLab certificate to Java cacerts
|
|
- type password
|
|
- Trust this certificate? Type:
yes
And hit Enter
- Restart Jenkins
|
|
-
Install GitLab plugin in Jenkins and restart Jenkins
-
Log into the GitLab, create a project and generate a token for project.
-
Go to Manage Jenkins -> System and scroll down to find GitLab section.
-
Provide a connection name eg. GitLab, GitLab URL and credentials (use API token generated in GitLab for the project to add credentials - see the video)
-
Test the connection.