cgumpert created page: jenkins setup authored by Christian Gumpert's avatar Christian Gumpert
# Setting up a Jenkins server for CI testing
The following steps explain on how to setup and configure a Jenkins server for continuous integration tests using the CERN openstack infrastructure.
1. Launch an openstack instance as described [here](https://clouddocs.web.cern.ch/clouddocs/tutorial_using_a_browser/index.html). The following settings are recommended:
+ flavor: m2.medium
+ boot from image: SLC6 CERN Server - x86_64 [2015-02-10]
+ keypair: make sure to add a public ssh key
1. Configure the virtual machine:
1. Login to the new machine using: 'ssh root@\<hostname\>'. Make sure that you use the same ssh key pair as specified when you created the openstack instance.
1. CVMFS
+ installation:<br />
<tt>yum-config-manager --add-repo http://cvmrepo.web.cern.ch/cvmrepo/yum/cvmfs/x86_64/</tt><br />
<tt>yum install --nogpgcheck cvmfs cvmfs-config-default</tt><br />
+ setup:<br />
<tt>cat >> /etc/cvmfs/default.local << EOF<br />
> CVMFS_HTTP_PROXY='http://ca-proxy-meyrin.cern.ch:3128;http://ca-proxy.cern.ch:3128;http://ca01.cern.ch:3128|http://ca02.cern.ch:3128|http://ca03.cern.ch:3128|http://ca04.cern.ch:3128|http://ca05.cern.ch:3128|http://ca06.cern.ch:3128'<br />
> CVMFS_CACHE_BASE='/var/lib/cvmfs'<br />
> CVMFS_FORCE_SIGNING='yes'<br />
> CVMFS_REPOSITORIES='atlas-condb.cern.ch,atlas.cern.ch'<br />
> EOF</tt>
+ test:<br />
<tt>/usr/sbin/setenforce 0<br />
cvmfs_config setup<br />
cvmfs_config probe</tt><br />
should return:<br />
<tt>Probing /cvmfs/atlas-condb.cern.ch... OK<br />
Probing /cvmfs/atlas.cern.ch... OK</tt>
1. Jenkins (taken from [here](https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions))
+ installation:<br />
<tt>wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo</tt><br />
<tt>rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key</tt><br />
<tt>yum install jenkins</tt><br />
<tt>yum install java</tt><br />
+ start Jenkins server:<br />
<tt>service jenkins start</tt><br />
<tt>chkconfig jenkins on</tt><br />
\ No newline at end of file