Hrnsvnc Blog

Software, Technology and stuff


How to install Jenkins on Raspberry Pi with Ubuntu Mate

Picture of Jenkins logo

In this blogpost i will try to explain how to install Jenkins on your Raspberry pi with Ubuntu Mate.

First you have to get sure to have java running on your system. Check it with

java -version

If you get something similar to this you will be good to go:

openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12
OpenJDK Client VM (build 25.191-b12, mixed mode)

One way to get the newest version ist to go on the official website to the download section ( here you can choose one of many downloads. We want to download the one with the description “Ubuntu/Debian”. On the next page you can choose which version you want. In my case, i just chose the newest one. Now you have two possibilities to download the installation file. Either you download is directly with a browser from your ubuntu system. Or you can copy the link and past it into your local bash by downloading it via ssh with wget.

wget <Download Link>

Wget lets you download the file into the directory where you are right now. You can use other options to adjust your download with wget. Also you could read the documentation of wget (wget documentation page). To install your jenkins installer file you can go with sudo apt install ./filename.deb  After the installation is done you can check if jenkins is already running by typing

systemctl status jenkins.service

After that you can visit the Jenkins Page of your server. On a freshly installed Server this should be the ip address of your server, followed by the port 8080 ( After typing your ip into your browser you should be redirected to the a brand new jenkins page that says “unlock jenkins”. You’re being asked to enter the admin password which is created automatically and stored on your machine. In order to get that password you have to use the cat command.

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Now you should be seeing some kind of password in your bash. Copy it and paste it into the empty field on the Jenkins page. After getting through some menus you can create a user account. Now you did it. You installed a Jenkins on your raspberry pi. I recommend to read some of the documentation just to get a feeling what you just installed and how it works.

Please follow and like us:
Tweet 20

Leave a Reply

Your email address will not be published. Required fields are marked *