Jenkins installation

ENV list

OS : redhat linux enterprise server 5.6

Install Jenkins

1. download rpm installer from http://pkg.jenkins-ci.org/redhat/

2. logon your system, scsu to root

 $pwd

/root

$ls

apache-ant-1.8.4-bin.tar.bz2  jenkins-1.488-1.1.noarch.rpm

$

3. install it
  rpm -ivh jenkins-1.488-1.1.noarch.rpm
  check jenkins will be installed on /var/lib/jenkins
4. start the service
   service jenkins start

Install SVN
yum install subversion
yum install mod_dav_svn

Install ant
1. download ant binary release from apache

 $pwd

/root

$ls

apache-ant-1.8.4-bin.tar.bz2  jenkins-1.488-1.1.noarch.rpm

2. cp ./apache-ant-1.8.4-bin.tar.bz2 /usr/lib/

3. cd /usr/lib

4. bunzip2 apache-ant-1.8.4-bin.tar.bz2

5. tar -xvf apache-ant-1.8.4-bin.tar

6. rm apache-ant-1.8.4-bin.tar

7. vi /etc/profile

8. export ANT_HOME =/usr/lib/apache-ant-1.8.4

export PATH=$PATH:$ANT_HOME/bin


Config ant and svn from Jenkins console
1. logon to http://jenkins_server:8080
2. go to Manage Jenkins then Config system
3. config JDK, svn and ant

Create Jenkins Job

猜你喜欢

转载自ilnba.iteye.com/blog/1709719
今日推荐