Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Install Jenkins and Tron on Centos
wget -O /etc/yum.repos.d/jenkins.repo
rpm --import
yum -y install jenkins
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.
su jenkins -s /bin/bash -c 'ssh-keygen'
service jenkins start
tail /var/log/jenkins/jenkins.log
# see
# and
### How to setup the Monitoring external jobs for remote servers
unzip /usr/lib/jenkins/jenkins.war
cd /usr/lib/jenkins/WEB-INF/lib
mkdir /root/jenkins
for i in jenkins-core-*.jar remoting-*.jar ant-[1-9]*.jar commons-io-[1-9]*.jar commons-lang-[0-9]*.jar jna-posix-*.jar xstream-*.jar ; do ls -l $i ; cp $i /root/jenkins/ ;done
# On remote machines, scp the /root/jenkins direcotry and set the $JENKINS_HOME and run following command
java -jar /root/jenkins/jenkins-core-*.jar "Cron-Monitor-Test" ls -l
yum install python-setuptools
easy_install pip
pip install tron
mkdir -p /var/log/tron
touch /var/log/tron/tron.log
trond --host=localhost --debug
ps aux | grep trond | wc -l
# if its zero means trond didnt started, so check the tron.log
tail /var/log/tron/tron.log
# if u end up with error like ConfigError: No SSH Agent available ($SSH_AUTH_SOCK), then you have to change the agent: false in the Configuration file.
# Configuration file is - /var/lib/tron/config/MASTER.yaml
# go edit the Configuration file and start the trond in actul mode
# trond --host=<fqdn>
# The webUI is available at http://fqdn:8089
Important Pluging for Jenkins
Jenkins SSH plugin :
Basic Configurarion : cat /var/lib/jenkins/config.xml
Jobs configuration : cat /var/lib/jenkins/jobs/<job-name>/config.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment