Skip to content

Instantly share code, notes, and snippets.

@john-auld
Last active September 9, 2019 11:45
Show Gist options
  • Save john-auld/641edfd76f71bdeac129026f04af4195 to your computer and use it in GitHub Desktop.
Save john-auld/641edfd76f71bdeac129026f04af4195 to your computer and use it in GitHub Desktop.
Install Jenkins on CentOS 7

Install notes for Jenkins on CentOS 7

sudo yum install java-1.8.0-openjdk-devel
curl --silent --location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

sudo yum install jenkins
sudo systemctl enable jenkins
sudo systemctl start jenkins

sudo firewall-cmd --permanent --zone=public --add-port=8080/tcp
sudo firewall-cmd --reload

[source]9https://linuxize.com/post/how-to-install-jenkins-on-centos-7/)

@john-auld
Copy link
Author

To use ansible with Jenkins, sudo yum install -y sshpass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment