In this article I would like to share my experience configuring a Jenkins shared library in a Git repository. As I am using Windows sever, I used puttygen to generate the SSH keys.
Create SSH keys using PuTTYgen
Download PuTTYgen
Install it and open. Click Generate button
- Move the cursor randomly
- Save private key (The other button for saving private key saves it in different format. So use the method shown in the below image)
- Save public key
Add Public key to Git server
- Add key Public key to git (here I am using Bitbucket)
- Copy the Repo SSH URL
Configure Jenkins with Private key
- Create Jenkins credential
- Add username and Private key
- Configure shared library with git SCM with the copied URL and credential we have just created
Top comments (0)