Jenkins Setup on Digital-Ocean Cloud

Bhargavi DaveBhargavi Dave
2 min read

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

  1. Run from a WAR (Web Application Resource) file

  2. Run as a Docker container

  3. Install on Window

  4. Install on macOS

  5. 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

  1. 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

  1. Access Jenkins on the web browser by typing
    ip_address:jenkins_port

  2. Getting Unlock Jenkins Password

  3. Install Suggested Plugins

  4. 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.

1
Subscribe to my newsletter

Read articles from Bhargavi Dave directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Bhargavi Dave
Bhargavi Dave