在 CentOS 上安裝 Jenkins
http://pkg.jenkins-ci.org/redhat/
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions
安裝 Jenkins
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
yum install jenkins
在公司內部環境需透過proxy才能連線的話,
應先切換身分為root並設定http_proxy這個環境變數,例如:
sudo -i
export http_proxy=http://10.160.3.88:8080/
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
啟動 Jenkins
service jenkins start
整合 Jenkins 至 Apache
https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache
修改/etc/sysconfig/jenkins
JENKINS_ARGS="--prefix=/jenkins"
vi /etc/httpd/conf.d/proxy_ajp.conf
ProxyPass /jenkins http://localhost:8080/jenkins
ProxyPassReverse /jenkins http://localhost:8080/jenkins
ProxyRequests Off
重新啟動 Jenkins
service jenkins restart
存取 Jenkins
http://myserver.domain.name/jenkins