Respberry Tricks

Installing A Jenkins

source http://www.duskborn.com/installing-jenkins-on-raspberry-pi-2/

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins

This worked, kinda. Basically because Raspbian already has a method for acquiring the jenkins.war, it didn’t like me installing Jenkins via the new method (said there was a .deb file that conflicted). After some Googling, I found this articlewhich had the command;

sudo dpkg -i --force-overwrite /var/cache/apt/archives/smplayer_0.6.9+svn3595-1ppa1~maverick1_i386.deb

Which I used but replaced the .deb file with the offending jenkins .deb, and it installed ok.

For some reason Jenkins wouldn’t start though, so I manually ran the init service that is installed to /etc/init.d/jenkins and ran it as follows;

sudo /etc/init.d/jenkins start

And it complained that I was using Java 6 instead of the minimum required Java 7. If you use the Linux command update-alternatives, you can do;

$> sudo update-alternatives --list java
/usr/lib/jvm/java-6-openjdk-armhf/jre/bin/java
/usr/lib/jvm/jdk-7-oracle-armhf/jre/bin/java
/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/jre/bin/java

You can then use;

$> sudo update-alternatives --config java


Advertisements