Jenkins On Orangepi

Some time ago I decided to buy a Orange Pi pc. It is really close to Raspberry pi, however it is much cheaper. The objective of this small server is to be used as continuous integration server installing on it Jenkins and another tools.

Introduction

Based on wikipedia post CI is: In software engineering, continuous integration (CI) is the practice of merging all developer working copies to a shared mainline several times a day. In XP, CI was intended to be used in combination with automated unit tests written through the practices of test-driven development. Initially this was conceived of as running all unit tests in the developer’s local environment and verifying they all passed before committing to the mainline. This helps avoid one developer’s work-in-progress breaking another developer’s copy. If necessary, partially complete features can be disabled before commit, such as by using feature toggles.

Hardware

There are some alternatives to Orange pi like Raspberry pi. I decide to use Orange pi because is cheaper, however Raspberry pi alternative is better documented an easier to use. It is up to you to decide.

Main charactersitics from Orange pi are:

Hardware specification

CPU

H3 Quad-core Cortex-A7 H.265/HEVC 4K

GPU

·Mali400MP2 GPU @600MHz
·Supports OpenGL ES 2.0

Memory (SDRAM)

1GB DDR3 (shared with GPU)

Onboard Storage

TF card (Max. 64GB) / MMC card slot

Onboard Network

10/100M Ethernet RJ45

Power Source

DC input can supply power, but USB OTG input don’t supply power

USB 2.0 Ports

Three USB 2.0 HOST, one USB 2.0 OTG

Software

There are plenty of OS that you can install, in my case I decided to use ARMBian. As a CI server I will use Jenkins. It fits my requirements and I am used to it. In order to install Jenkins Java must be installed before.

Os

In order to use ARMBian you have to download the image and copy in to a SD card. I had some problems because I tried with different software to do it. The only one that worked properly was Win32diskManager.

After that you have to boot the system and update it:

sudo apt-get update
sudo apt-get upgrade

Jenkins

First of all Java must be installed:

su -
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
exit

if you want to set Oracle Java 8 as default:

sudo apt-get install oracle-java8-set-default

Check java version installed:

java -version

Finally install Jenkins:

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

Upgrade and install:

sudo apt-get update
sudo apt-get install jenkins

Now you can access to your server ip using 8080 port.

References

  1. Install Java8
  2. Install Jenkins

Jorge Corredera

Jorge Corredera
I am a Spanish telecommunication engineer.I like social robotics, computers and almost everything with wires. Right now, I am working as a Software Engineer. Furthermore I am always happy to be involved in challenging projects.

Pcb Working Process

Published on April 30, 2018

Cyclone Pcb Factory

Published on January 01, 2018