Jenkins
Overview
This installation happens on the
dsb-hub
.
According to Jenkins User Documentation, Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software. It's a CI/CD platform.
Prerequisites
- Install Java
Before installing Jenkins, ensure that Java is installed on your system:
-
Update your package manager and install Java:
sudo apt update
sudo apt install fontconfig openjdk-17-jre
Installation Steps
- Configure the Package Manager and Install Jenkins
-
Add Jenkins to your package manager by downloading and installing the Jenkins key:
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
-
Add the Jenkins repository to your sources list:
echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/" | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null
-
Update your package list and install Jenkins:
sudo apt-get update
sudo apt-get install jenkins
- Enable and Start Jenkins
-
Enable Jenkins to start on boot:
sudo systemctl enable jenkins