Jenkins - An Open Source Automation Server
Jenkins is open source continuous integration tool that facilitates continuous aspects of continuous delivery.
Jenkins is an open source automation server used for continuous delivery and, ultimately, to accelerate the software delivery process and pipeline. It is built in Java and has more than 1000 plugins to support automation of virtually anything, so that humans can actually focus their time on things computers cannot do. In this tutorial we will learn how to deploy a Jenkins Server and start our task automation journey.
What to Use Jenkins for:
Use Jenkins to automate your development or task workflow so you can focus on work that matters most and leave the mundane and repetitive task for the Jenkins Server to execute. Jenkins is commonly used for:
- Building projects
- Running tests to detect bugs and other issues as soon as they are introduced
- Running jobs or tasks on remote servers
- Static code analysis
- Continuous code deployment Execute repetitive tasks, save time, and optimize your development process with Jenkins.
- Integration with numerous automation tools such as Ansible, Chef, Puppet …
Installing Jenkins Pre-requisites
Set up the hostname and update the system:
Install the required repository:
Install Jenkins repository:
Install Vim text editor:
Create jenkins user with sudo Rights:
Switch user to the Jenkins user and run all following commands using sudo:
Configure the Firewall to allow port 8080 - (Optional):
Start Jenkins service:
With your Browser: Go to http://your-ip-address:8080 Verify that Jenkins is running on port 8080
Installing and Configuring Nginx as Reverse Proxy
Installing Nginx web server:
Lets-Encrypt for Jenkins:
Create a Virtual Host:
And paste in the following code snippet and adapt it to your environment
Configure Jenkins using the UI Wizard
Go to the website and follow the prompt to finish configuring Jenkins UI
Next, enter the default credential Next, Install suggested plugins Next, wait for the plugins to be installed Next, create the admin user and password
Setting Up Security in Jenkins:
- On Configure Global Security page check Enable Security.
- On Security Realm choose Jenkin’s own user database and make sure Allow users to sign up is checked.
- On Authorization choose Logged-in users can do anything then click Save
More in Securing Jenkins: Securing Jenkins
How to reset Jenkins Admin password: Reset Admin Password
Jenkins documentation for more: Jenkins Documentation
This marks the end of our tutorial, Jenkins - An Open Source Automation Server, that enables system administrators to better automate mundane and repetitive tasks on large IT Infrastructure. Jenkins plays also an important role in the continuous integration and continuous deployment process. Don’t hesitate give it a try and you will discover the power of Jenkins.