Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bzz/6791168 to your computer and use it in GitHub Desktop.
Save bzz/6791168 to your computer and use it in GitHub Desktop.
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum -y install jenkins
sudo yum -y install java-1.7.0-openjdk.x86_64
# Login as the jenkins user and specify shell explicity,
# since the default shell is /bin/false for most
# jenkins installations.
sudo su jenkins -s /bin/bash
ssh-keygen
exit
sudo service jenkins start
sudo tail -f /var/log/jenkins/jenkins.log
# see https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions
# and http://stackoverflow.com/questions/15314760

Recommended Jenkins plugins

  1. GitHub Plugin
  2. GitHub pull request builder plugin
  3. Github OAuth Plugin
  4. Project Description Setter Plugin
  5. Green Balls
  6. Plot Plugin
  7. Workspace Cleanup Plugin
# set the server time to UTC
sudo mv /etc/localtime /etc/localtime.bak
sudo ln -s /usr/share/zoneinfo/UTC /etc/localtime
# sync to ntpd server time
sudo ntpd -q
# start ntpd after reboot
sudo chkconfig ntpd on
# cf: ntpd --list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment