I want to get a CI system setup at home and decided to try getting Jenkins up and running on a Raspberry Pi 2. My starting point is the latest Rasbian distribution, I have fixed the IP address of this Raspberry PI at 192.168.0.34.
NOTE: I initially tried just installing jenkins from Rasbian, with sudo apt-get update and sudo apt-gt install jenkins, however this installed a very old version of Jenkins and I couldn’t easily update it. This post covers installation of the latest stable version of Jenkins on a clean Rasbian system.
I found instructions to install the latest stable version of Jenkins on Ubuntu and Debian, I chose to install the LTS version.
First I added the key for the LTS version to my repository
wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | sudo apt-key add -
Then I updated /etc/apt/sources.list: adding this line to the top of the file
deb http://pkg.jenkins-ci.org/debian-stable binary/
Updated the local package index, then finally install Jenkins:
sudo apt-get update sudo apt-get install jenkins
the install happened without problems