|My Raspberry Pi|
My Pi is running Raspbian, which is Debian based, so theoretically installing Jenkins is as simple as running apt-get:
sudo apt-get install jenkinsThis certainly installed it ok, but for some reason, it wouldn't start up. Searching google revealed on possible issue regarding Java versions - specifically that Sun Java currently doesn't run on the Raspberry Pi. A summary of how to fix that issue is:
However, my installation had already installed OpenJDK, so that wasn't my issue
sudo update-alternatives --config javathen chose
OpenJDKfollowed by a reboot of the Pi.
Jenkins starts up as expected after boot.
As it turns out, the issue is a bug in Jenkins which leads Jenkins to attempt to extract itself into a full directory, resulting in a
java.io.IOException: No space left on devicein the logs (/var/log/jenkins/jenkins.log)
This issue was supposedly fixed in Jenkins version 1.443. However my installation was 1.447, so it is still an issue (I have re-raised the bug as JENKINS-14934). In the meantime the original bug JENKINS-11366 has a workaround which solved it for me:
Edit /etc/default/jenkins and change the line starting JENKINS_ARGS so that it references JENKINS_HOME instead of /var/run
JENKINS_ARGS="--webroot=$JENKINS_HOME/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"
|Jenkins on my Raspberry Pi|