Saturday, November 3, 2018

Jenkins Installation on CentOS

Jenkins Installation on CentOS:

To use this repository, run the following command:

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

If you've previously imported the key from Jenkins, the "rpm --import" will fail because you already have a key. Please ignore that and move on.

Make sure jdk is already installed.

Check using (java -version)

With that set up, the Jenkins package can be installed with:

yum install jenkins

Reference: https://pkg.jenkins.io/redhat-stable/

Later you need to disable firewall or add exceptions to access jenkins from network.
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --reload

Reference: https://serverfault.com/questions/871597/unable-to-access-jenkins-centos-7

Some video not used here:



Some more not used here:
https://www.digitalocean.com/community/tutorials/how-to-set-up-jenkins-for-continuous-development-integration-on-centos-7
https://jenkins.io/doc/book/installing/

No comments:

Post a Comment