Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lerndevops authored Apr 20, 2022
1 parent a3c0846 commit 54772b2
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions cicd-flow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,54 @@ host_key_checking = False
continue next and finish the setup.
```

## Step7 -- `configure Jenkins with Docker`
## Step7 -- `Install reqired Plugins (Install from Jenkins UI)`
```
install all these from Jenkins UI
Manage Jenkins --> manage plugins -- Available -- search & install the below
1) warnings NG
2) cobertura
3) Junit
4) Build Pipeline
5) Docker Piepeline
```

## Step8 -- `Create Credentials (Setup from Jenkins UI)`

```
Manage Jenkins --> Manage Credentials ==> Stores scoped to Jenkins - global ==> Add Credentials
--> kind: username with password
--> scope: Global
--> username: <enter your docker hub id>
--> password: <enter your docker hub password>
--> ID: DOCKER_HUB_LOGIN
--> Description: DOCKER_HUB_LOGIN
```
## Step9 -- `Configure JAVA - MAVEN - Git (Setup from Jenkins UI)`

```
Java configuration in Jenkins console
Manage Jenkins --> Global Tool Configuration --> JDK --> Add JDK
Name: myjava ( can be any string )
JAVA_HOME: /path/to/javahome ( ex: /usr/lib/jvm/java-8-openjdk-amd64 )
```
```
Maven Configuration in Jenkins console
Manage Jenkins --> Global Tool Configuration --> Maven --> Add Maven
Name: maven3.6 ( can be any string )
MAVEN_HOME: /path/to/mavenhome ( ex: /opt/apache-maven-3.6.5 )
```
```
Git Configuration in Jenkins console
Manage Jenkins --> Global Tool Configuration --> Git --> Add Git
Name: git ( can be any string )
MAVEN_HOME: /path/to/githome ( ex: /usr/bin/git )
```

## Step10 -- `configure Jenkins with Docker - from Jenkin Server CLI`

> by default Jenkins process runs with Jenkins User, which mean any jenkins Jobs we run from jenkins console will be running jenkins user on Jenkins machine
Expand All @@ -81,15 +128,15 @@ host_key_checking = False

##### if the above commands execute without any error then we configured jenkins user properly

## Step8 -- `Setup Deployment Environments`
## Step11 -- `Setup Deployment Environments`

> **setup atleast one docker swarm / kubernetes cluster**
```
create two VMs for QA, Install the required toos & setup the kubernetes cluster, one master - one worker node
```

## Step9 -- `Setup Ansible Inventory on Jenkins machine`
## Step12 -- `Setup Ansible Inventory on Jenkins machine using CLI`

```
vi /tmp/inv
Expand All @@ -102,51 +149,4 @@ host_key_checking = False
Note: ensure to put only manager IPs in inventory file -- DO NOT PUT NODE IPs
```

## Step10 -- `Install reqired Plugins (Install these from Jenkins UI)`
```
install all these from Jenkins UI
Manage Jenkins --> manage plugins -- Available -- search & install the below
1) warnings NG
2) cobertura
3) Junit
4) BuildPipeline
5) DockerPiepeline
```

## Step11 -- `Create Credentials (Setup these from Jenkins UI)`

```
Jenkins ( main/home page ) ==> Credentials ==> global ==> Add Credentials
--> kind: username and password
--> scope: Global
--> username:
--> Secret: <enter your docker hub password>
--> ID: DOCKER_HUB_LOGIN
--> Description: DOCKER_HUB_LOGIN
```
## Step12 -- `Configure JAVA - MAVEN - Git (Setup these from Jenkins UI)`

```
Java configuration in Jenkins console
Manage Jenkins --> Global Tool Configuration --> JDK --> Add JDK
Name: myjava ( can be any string )
JAVA_HOME: /path/to/javahome ( ex: /usr/lib/jvm/java-8-openjdk-amd64 )
```
```
Maven Configuration in Jenkins console
Manage Jenkins --> Global Tool Configuration --> Maven --> Add Maven
Name: maven3.6 ( can be any string )
MAVEN_HOME: /path/to/mavenhome ( ex: /opt/apache-maven-3.6.5 )
```
```
Git Configuration in Jenkins console
Manage Jenkins --> Global Tool Configuration --> Git --> Add Git
Name: git ( can be any string )
MAVEN_HOME: /path/to/githome ( ex: /usr/bin/git )
```

## Step 13: Now Let's start creating CICD Pipeline

0 comments on commit 54772b2

Please sign in to comment.