Skip to content

Commit

Permalink
Added jenkins details
Browse files Browse the repository at this point in the history
  • Loading branch information
m-thirumal committed Sep 11, 2024
1 parent 51a9e86 commit 7cbf039
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
33 changes: 33 additions & 0 deletions jenkin/credentials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Credentials

## SSH

Switch to the jenkins user:

```bash

sudo su - jenkins
```

Generate the SSH key (if not already created):

```bash

ssh-keygen -t rsa -b 4096 -C "[email protected]"

```

Save the key in the default location (`/var/lib/jenkins/.ssh/id_rsa`) and provide a passphrase if needed.

Copy the SSH public key to GitHub:

```
cat ~/.ssh/id_rsa.pub
```

Copy the content of the public key and add it to GitHub under Settings > SSH and GPG keys > New SSH Key.


Go to jenkins, and add the `Private` key to credentials

!> Need to add known host. If you don't know, how to just clone any repo, it will prompt yes/No. Press `YES`
12 changes: 7 additions & 5 deletions jenkin/jenkins.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Jenkins
* [Install Jenkin](jenkin/installation.md)
* [Config with Private IP](jenkin/config_with_private_ip.md)
* [Email Integration/notification](jenkin/Email%20Integration.md)
* [Install jenkin on docker](jenkin/jenkin_on_docker.md)
* [Troubleshoot](jenkin/Troubleshoot.md)

* [Install Jenkin](jenkin/installation.md)
* [Config with Private IP](jenkin/config_with_private_ip.md)
* [Email Integration/notification](jenkin/Email%20Integration.md)
* [Credentials](jenkins/credentials.md)
* [Install jenkin on docker](jenkin/jenkin_on_docker.md)
* [Troubleshoot](jenkin/Troubleshoot.md)

0 comments on commit 7cbf039

Please sign in to comment.