Brainy Pi

Available to select audience (currently beta)

Jenkins on Brainy pi

Jenkins is a free and open-source server that may be used to streamline software development processes. In addition, the program may manage both continuous integration and continuous delivery (CICD). The purpose of this blog is to run Jenkins on Brainy pi – Raspberry pi Alternative.
Brainy Pi users may quickly set up Jenkins on their hardware by following the steps outlined. In addition, you will be able to submit PHP scripts and easily compile tiny ARM programs.

Required Components for Running Jenkins:

Jenkins on Brainy Pi

You will need :
    • Brainy Pi
    • Ethernet/ WIFI
    • Keyboard and mouse for USB
    • SD card/hard drive

Step 1: Java Installation

You should check to see if your Brainy Pi packages are up to date. To install any new software, updating and upgrading the device is essential.
Installed, start your Pi, then type the following in the Terminal
sudo apt update 

sudo apt upgrade 
Jenkins is based on Java. So, we need to set up a Java Runtime Environment.
1. Use the command to set up Java 
sudo apt install openjdk-11-jre

2 Use the command to see if the Java installation is complete.
java --version
Hence, the successful installation of Java on brainy is complete.

Step 2: Getting Brainy pi Ready

1. The Jenkins repository key must be added to the Pi’s key chain before installation can begin.
curl https://pkg.jenkins.io/debian/jenkins.io.key | gpg --dearmor | sudo tee /usr/share/keyrings/jenkins-archive-keyring.gpg 

2. The next step is to include the repository in our sources list.
We will use the following command to create a file named “Jenkins. list” in the “/sources.list.d/” directory to achieve this.
sudo nano /etc/apt/sources.list.d/jenkins.list

3. Insert the following into the document. The reference to the Jenkins repository is specified here.
deb [signed-by=/usr/share/keyrings/jenkins-archive-keyring.gpg] https://pkg.jenkins.io/debian binary/

When you are through making changes, hit CTRL + X, Y, and ENTER to save your work.
4. Do a single command-line system update.
sudo apt update 

5. The command is used to set up Jenkins.
sudo apt install jenkins

Step 3: Web Interface Brainy pi for Jenkins

The Brainy Pi’s IP address is required to access the web interface.

1. Use the ip address command to determine your Pi’s IP address.
hostname -I

2. Reset the administrator password.
sudo cat /var/lib/jenkins/secrets/initialAdminPassword

It will be in the format of
9df8c9c4cf694754a0047771a53b9fe8
3. Type the address into your web browser’s search
[BRAINYPIIPADDRESS]:8080

This will launch Jenkins’s web-based user interface.

Jenkins on Brainy Pi

The first prompt will request the Administrator password to gain access to Jenkins. So that you know, the password you got before must be entered here.

4. You will get a screen where you may choose whether or not to install the recommended plugins. We will select “Install suggested plugins.”
5. You will then get a prompt to set up an admin login to manage your Brainy Pi Jenkins installation; after that, you can go ahead with the setup.
6. You can double-check the URL is ready for your Jenkins setup and enter the IP address of your Brainy Pi and the port number 8080 here.

Endnotes:

The following step typically takes less than 5 minutes to complete and is ready for use.
Now that the installation of Jenkins is successful, you may access it over the web and begin making tasks and doing other things.
Building, testing, and deploying software are made much easier with the Jenkins server, making it an excellent platform for developers. The server operates in a Java environment along with Brainy Pi – Raspberry pi Alternative with the help of the instructions given above.  After installing the necessary plugins, you may access the Jenkins dashboard in your browser via the web interface.
Reference: Jenkins Installation 

0 Comments

Leave a reply

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

*