Installation and Setup Jenkins on Centos 7.x
Preparing Node (CenOS)
- Setup Appropriate Hostname with FQDN
echo “jenkins.rulepaper.com” > /etc/hostname
- Install wget if your node installed with minimal OS installation
sudo yum install wget -y
- Install Java if it is not already exists
sudo yum install java -y
- Update system
sudo yum update
Installation of a stable Jenkins version
sudo wget -O /etc/yum.repos.d/jenkins.repo
http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import
https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins -y
set the jenkins service to start while booting "
sudo chkconfig jenkins on”
- Start the jnekins service “service jenkins start”
Configuration of Jenkins
- As mentioned in above pic, get your secure password from mentioned file using cat /var/lib/jenkins/secrets/initialAdminPassword
- After validating your secret password, page will proceed wot SetupWizard
- Suggested plugin installation will start and right side you will see installation status.
- Post installation it will prompt us to create first admin user.
- File the user details and click on “Save and Continue”, followed by instance configuration click on “Save and Finish”.
- Now Jenkins is ready to start using it click on “Start using Jenkins”.
Will post a video soon on about “Explore Jenkins in Real time”