service jenkins startãåããªãå ´åã®å¯¾å¿
ã¨ãããããµã¼ãã¹èµ·åãããã¾ã§ã®ã¡ã¢ã
ç°å¢
- Ubuntu11.10(VirtualBox)
Javaã®ã¤ã³ã¹ãã¼ã«
ãã¡ããåèã«ãã¦å®äºã
Ubuntu11.10にIntelliJ IDEAをインストール, Ubuntuを11.10にしたついでにrvmをやめてrbenvにしてみた。 - ryuone日記(2011-11-23)
/home/kanno% sudo add-apt-repository ppa:ferramroberto/java /home/kanno% sudo apt-get update /home/kanno% sudo apt-get install sun-java6-jdk /home/kanno% sudo update-alternatives --config java
Jenkinsã®ã¤ã³ã¹ãã¼ã«
Ubuntu11.10ããã¯ãªãã¸ããªã«ããããããã§ãæ®éã«apt-getããã
/home/kanno% sudo app-get install jenkins
11.10æªæºã®äººã¯sources.listã追å ãã¦ãããããããã
Ubuntu10.10 自宅サーバ構築手順:継続ビルド環境(Jenkins)インストール - Shinya’s Daily Report
404 Not Found
(ã¤ã³ã¹ãã¼ã«ããã/etc/jenkins/cli.confããããã£ã¦ããè¨è¿°ããã£ããã ãã©ã
çµæã¨ãã¦ä»åã®ç¯å²ã§ã¯ãã®ãã¡ã¤ã«ãããå¿
è¦ãªãã£ãã)
ã§ãè²ã
ãªãµã¤ãã ã¨ããã§OKãããããããªèµ·åã§ãããã£ã¦æ¸ãã¦ããã
ã§ãç«ã¡ä¸ãããªããã¨ã©ã¼ãã§ãªãã
/home/kanno% sudo service jenkins start jenkins start/running, process 12655 /home/kanno% sudo service jenkins restart restart: Unknown instance: /home/kanno% sudo service jenkins stop stop: Unknown instance: /home/kanno% sudo service jenkins status jenkins stop/waiting
oh wating.
ã°ã°ãã¨ããã£ã½ãæ
å ±ããã£ãã
Bug #901810 “Jenkins won't start on a fresh Oneiric install” : Bugs : “jenkins” package : Ubuntu
The problem was that in /etc/init/jenkins.conf: env JAVA_HOME="/usr/lib/jvm/default-java" But the default-java symlink wasn't there. To solve the problem I did the following (as root): cd /usr/lib/jvm ln -s java-6-openjdk default-java
ã/etc/init/jenkins.confã®ä¸ã®JAVA_HOMEã/usr/lib/jvm/default-javaã«ãªã£ã¦ããã©ã
ãããªã®ã¯åå¨ããªãããã ããã·ã³ããªãã¯ãªã³ã¯è²¼ã£ããåãããã«ãªã£ããã
ã¨ãããã¨ãããã
èªåã®ç°å¢ã§ã確èªããããããã«åãããã«ãªã£ã¦ããã
ã®ã§ãèªåã¯ã¨ããããè¨å®ãã¡ã¤ã«ãæ¸ãæããã
/home/kanno% sudo vi /etc/init/jenkins.conf env JAVA_HOME="/usr/lib/jvm/default-java" #ããã â env JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.26" #ãããã
èµ·å確èªã
/home/kanno% sudo service jenkins start jenkins start/running, process 12686 /home/kanno% sudo service jenkins status jenkins start/running, process 12686
Good!
localhost:8080ã§ç¡äºè¡¨ç¤ºããã¾ããã
ã¡ããã¨ããè¨å®ã®ä»æ¹ã£ã¦ããã®ã¯éããããããªããã©ãã²ã¨ã¾ãåããã®ã§ããã