Gitlab Jenkins Guide

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

1.

make sure all gitlab related plugins are installed


-> Gitlab API Plugin
-> Gitlab Authentication Plugin
-> Gitlab Merge Request Builder
-> Gitlab Plugin

2.
-> create public access token on gitlab with the name "Jenkins-GitLAB_API-
Access"
-> copy that token and paste in jenkins
->Manage Jenkins->Manage Credentials->globals->Add Credentials
-> Select GitLab API Token
-> In API token field paste the token

3. we need SSH key.


==Steps for generating SSH-Key
-> open gitbash and run SSH-Keygen command to generate ssh-key
-> navigate to C://users->dell->.ssh->id_rsa.pub and copy the ssh key
-> then navigate to gitlab profile setting and click over ssh tab and
paste that key over there
-> add that key to jenkins as well in credentials section

4.

You might also like