JenkinsãCentOS6.4ã«ã¤ã³ã¹ãã¼ã«ããã
ãã¦ãã¨ããããJenkinsã
ã
ã
ï¼
ã¤ã³ã¹ãã¼ã«ãã¦ã¿ãããããç°¡åã
rootã¦ã¼ã¶ã¼ã«ãªã£ã¦ä»¥ä¸ã®ã³ãã³ãã§OKï¼
# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
# rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
# yum install jenkins
ããã§ãã£ã¦è¨å®ï¼
ã¾ãã¯Jenkinsã§ä½¿ç¨ãããã¼ããï¼éããã£ï¼ï¼
# vi /etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 18080 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT
- INPUT ACCEPT [0
- 0]
- FORWARD ACCEPT [0
- 0]
- OUTPUT ACCEPT [0
- 0]
# service iptables restart
ããã¦ãã£ãéãããã¼ãçªå·ãJenkinsã«å²ãå½ã¦ãããã«è¨å®ãã¡ã¤ã«ãä¿®æ£ä¿®æ£ãããã
# vi /etc/sysconfig/jenkins
# JENKINS_PORT="8080" JENKINS_PORT="18080"
ããã¦ï¼Jenkinsãèµ·åï¼Redmineã¨ããããéãï¼æ©ãï¼
# service jenkins start
ã¤ãã§ã«èªåèµ·åãããããã«è¨å®ã
# chkconfig jenkins on
ãããã以ä¸ã®URLã«ã¢ã¯ã»ã¹!
http://[ãµã¼ãã¼ã®IPã¢ãã¬ã¹]:18080/
ãããããããã ï¼
Yesï¼
ä»åã¯ç°¡åã ã£ããããã
次ã¯ã©ãããããªããã