20-May-2021 - Jenkins
20-May-2021 - Jenkins
Jenkins can be installed even on standalone be any machine with a java runtime
envirowment (JRE) Installed.
Stages in CI-CD
+++++++++++++++++++++++++++++++++++++++++++++++++
3) Click on Services
4) Click on EC2
5) Click on Instance
18) If you are doing first time then you need to select Create a new key pair
22) Give all 3 instance proper name ( Dev Server, QA Server, Prod Server )
2) Press Connect
5) Go to the folder where you have place your key then Open GITBASH in local
machine
Git Bash you will get automatically when you have install GIT in your local
machine.
Now we run any command that command run in the AWS Intance
Important Point : If you are not doing practice in AWS Stop all the instance.
To install Jenkins the first thing we need java file so first we need to install
java like we have done in the local instance.
We are selecting generic java package file because jenkins will install on those
machine where java is already install. If we have java install in windows machine
jenkins will work. Only pre requirement is java needs to be install.
For Windows we just need to click on the file and it will download automatically.
For Linux machine enter command wget and paste the url to download the file.
To get the URL right click on generic java package and click on copy link address.
(wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war)
wget https://get.jenkins.io/war-stable/2.277.2/jenkins.war
Every day if we want to run the jenkins we need to run this command.
Paste the Domain name in the browser and in the end enter :8080 with the default
port number.
Copy the public ip of the dev server and paste the ip address in the browser and in
the end enter :8080 with the default port number.
Public
When we are installing jenkins it will automatically give you the password in the
github terminal.
Copy the password and paste the browser.
The first user which we create here is the admin user of the jenkins.
Build tab
Click on execute Shell
In Command Box Enter echo " Hello Jenkins"
Click on Console Output
+++++++++++++++++++++++++++++