[[Jenkins]]

*環境 [#ff5ba940]
CentOS6.6

*手順 [#p2d2e629] 
***openjdkのインストール [#r3366c6c]
 # yum search openjdk
 Jenkinsは1.6以上が必要なのでバージョンを確認すること。
 # yum install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64
 # java -version
 openjdk version "1.8.0_65"
 OpenJDK Runtime Environment (build 1.8.0_65-b17)
 OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode)

***Jenkinsのインストール [#o1a1e3c2]
 # 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 -y install jenkins 
 # cd /etc/httpd/conf.d
 # vim jenkins.conf
 下記Apacheの設定は利用しているサーバーにあわせて適宜変更する
 ---
 <VirtualHost *:80>
     ServerAdmin admin@example.com
     DocumentRoot "/var/lib/jenkins"
     ServerName jenkins.hoge.com
     ServerAlias jenkins.hoge.com
     ErrorLog "/var/log/jenkins/apache-error.log"
     CustomLog "/var/log/jenkins/apache-access.log" common
 
     ProxyPass /jenkins http://localhost:8080/jenkins retry=5
     ProxyPassReverse /jenkins http://localhost:8080/jenkins
     ProxyRequests Off
 
     <Proxy http://localhost:8080/jenkins*>
       Order deny,allow
       Allow from all
     </Proxy>
 </VirtualHost>
 ---
 # service jenkins start
 # chkconfig --list jenkins
 jenkins        	0:off	1:off	2:off	3:on	4:off	5:on	6:off

*備考 [#na0e7eb1]
インストール先は下記のフォルダになります。
-/var/lib/jenkins
-/usr/lib/jenkins

*参考URL [#ff42037d]
-http://blog.livedoor.jp/haruchaco/archives/1643316.html
-http://d.hatena.ne.jp/katsuren/20121030/1351569655
-http://kumagonjp2.blog.fc2.com/blog-entry-103.html

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS