#Jenkins CI-CD Deployment
Commands to configure the Jenkins for CI-CD pipelines
- we have to make a 3 Aws Instances in that we have to select the the Ubuntu machine , then we are using the t2-Micro. after that we
- have to create a key-pair for the jenkins.
- then we have to allow the Inbound traffic and the Outbound traffic to allow the traffic
- then we have to create a Instance.
Important Commands to configure the Jenkins,
-
sudo apt-get update
-
we have to create a bash file in which we have to paste the below commands and also we have to write the -y after the install jenkins commands
-
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc
https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]"
https://pkg.jenkins.io/debian-stable binary/ | sudo tee
/etc/apt/sources.list.d/jenkins.list > /dev/null sudo apt-get update sudo apt-get install jenkins -
sudo apt install fontconfig openjdk-17-jre
-
sudo systemctl enable jenkins
-
sudo systemctl start jenkins
-
sudo systemctl status jenkins
-
Always jenkins start at 8080 port Number
-
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
-
java --version
-
start the jenkins server and configured the Master and slave Architecture