Jenkins Setup on Digital-Ocean Cloud


Jenkins is an open-source automation server. We are used to automating parts of the software development process.
Jenkins helps software teams facilitate Continuous Integration and Deployment/Delivery. It is highly extensible, and hundreds of plugins are available for it.
WHY DO WE NEED JENKINS?
Developers making code changes in parallel want to ensure their changes integrate without errors. Without Jenkins, manual integration testing happens infrequently and is time-consuming.
Developers also want their changes built and tested in a standardized environment. Jenkins Provides a standardized build and test environment.
Jenkins mainly focuses on the Testing and Deploy phase of the Software Development Life Cycle.
Installation Method
Run from a WAR (Web Application Resource) file
Run as a Docker container
Install on Window
Install on macOS
Install on Linux
Run using WAR File
WAR File is Platform/OS independent
Only Requires that JAVA RUNTIME ENVIRONMENT (JRE) or JAVA DEVELOPMENT KIT(JDK)
Run Jenkins as a Docker Container
Log in to your DigitalOcean account. Click on the “Create” button and select “Droplets.”
2. Choose Region
3. Choose an Image
4. Choose Size
5. Choose Authentication Method
i) Password
ii) SSH key (We are Using)
6. Click on the Create Droplet button to create your Droplet.
7. Rename droplet name :
8. Click on Networking and click on the Create Firewall button
9. Inbound Rules :
10. Outbound Rules :
11. Firewall Created :
Install Docker on your Droplet
12. SSH to your droplet
Copy your droplet’s IPV4
(i) Update your package index by running the command:
sudo apt update
(ii) Install docker by running the command :
sudo apt install docker.io
(iii) Install Jenkins on the Docker container
docker run -p 8080:8080 -p 50000:50000 -d -v
jenkins_home:/var/jenkins_home jenkins/jenkins:lts
docker ps
Access Jenkins on the web browser by typing
ip_address:jenkins_portGetting Unlock Jenkins Password
Install Suggested Plugins
Create First Admin User
Congratulations🥳
So, this is the process of installing Jenkins on the docker container which is running on the cloud.
https://hashnode.com/post/cm18upj3b000l08mmbmrf91kw
Conclusion:
So, Jenkins is useful and famous for automating the software development process. We can do this by using Jenkins job pipelines which is an important tool. By defining a series of sequential stages in a pipeline, developers can automate the building, testing, and deployment of their code.
Subscribe to my newsletter
Read articles from Bhargavi Dave directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
