Jenkins Installation and Configuration

I'm AWS Certified Solution Architect. I do write about the AWS Cloud Operation, Migration, Security and Automations.
Search for a command to run...

I'm AWS Certified Solution Architect. I do write about the AWS Cloud Operation, Migration, Security and Automations.
No comments yet. Be the first to comment.
Introduction: Migrating physical or virtual machines from on-premises to AWS can feel scary but AWS Application Migration Service (MGN) makes it straightforward by continuously replicating servers to AWS and enabling test launches and cutovers with m...

Migrating your on-premises MySQL database to Amazon RDS for MySQL with AWS Database Migration Service (DMS) is a common way to move to a managed, highly available database while keeping zero downtime or minimal. In this blog, I’ll show how you can mi...

Introduction: Monitoring storage utilization is critical to ensure application stability and avoid unexpected outages. In AWS, Amazon EBS does not provide built-in metrics for volume-level disk usage, which makes proactive alerting a challenge. To ad...

Introduction: we need to securely transfer sensitive documents to the cloud without manual intervention. A common requirement is to automatically detect file changes, apply client-side encryption, and upload only the modified files on a scheduled bas...

Introduction: Data migration and disaster recovery are key considerations for building resilient cloud architectures. A common requirement is to migrate data from an local machine to a primary Amazon S3 bucket, while ensuring that the same objects ar...

Jenkins is an open-source automation server that helps automate the software development process. It is used for building, testing, and deploying software. It helps developers catch bugs early and release software faster.
Some of the Benefits are:
Easy to install and configure
Platform independent
Automates integration
Detects errors early
Rich plugin ecosystem
Open source
Great community support
Easy distribution
Now, Let's begin the installation processes.
There are several steps to configure Jenkins on an Ubuntu machine:
Jenkins requires Java to run, so you'll first need to install OpenJDK. For Ubuntu 20.04 and later, install OpenJDK 11:
sudo apt install openjdk-11-jre
It's recommended to install Jenkins from the official Jenkins repository instead of the Ubuntu repository. This ensures you have the latest version.
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee \
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
sudo sh -c 'echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt update
sudo apt install jenkins
sudo systemctl start jenkins
sudo ufw allow 8080
Access Jenkins in your browser at http://localhost:8080
Get the initial admin password:
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Paste the password, choose plugins, and create your admin user.
Start using Jenkins! You can install more plugins, set up jobs, and configure your CI/CD pipelines.
Congratulations!! start your CICD journey.