Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

How to Install Jenkins on Debian 10

by Cloudbooklet
4 years ago
in Google Cloud, Compute Engine
How To Install Jenkins On Debian 10
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

How to Install Jenkins on Debian 10. Jenkins is a Java based software which is used to automated builds for tests, developments and production deployment from a version control repository like Github or Bitbucket, etc. It is mainly used as Continues Integration and Continuous Deployment (CI CD) software. This guide provides all the steps needed […]

ADVERTISEMENT

How to Install Jenkins on Debian 10. Jenkins is a Java based software which is used to automated builds for tests, developments and production deployment from a version control repository like Github or Bitbucket, etc. It is mainly used as Continues Integration and Continuous Deployment (CI CD) software.

This guide provides all the steps needed to install Jenkins on a Debian 10 server.

This setup is tested on Google Cloud VM Instance with 3.75 GB RAM running Debian 10 Buster. So this installation will work on other cloud hostings, VPS or dedicated servers with Debain 10.

ADVERTISEMENT

Setup Firewall Rules

If you are making this setup on Google Cloud you need to open certain ports on which Jenkins listens to.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago

Jenkins uses a custom port 8080 to run, so you need to create a firewall to all access to this port.

Go to VPC Network >> Firewall rules and click Create Firewall rules.

ADVERTISEMENT

In Name enter jenkins

In Targets select All instances in the network

ADVERTISEMENT

In Source filter select IP ranges

In Source IP ranges enter 0.0.0.0/0

ADVERTISEMENT

In Protocols and ports check TCP and enter 8080

Click Create.

ADVERTISEMENT

Install Java on Debian 10

Start by updating the packages to its latest version and install Java JDK 11 from the Debian repositories using the following command.

sudo apt update
sudo apt upgrade

Install Java.

sudo apt install default-jdk

Install Jenkins

To install latest version of Jenkins, add the repository key to the system and add the repository address to the sources list.

sudo wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

Now you can update and install Jenkins.

sudo apt update
sudo apt install jenkins

Starting Jenkins

Once the installation is complete you can start Jenkins using the following command.

sudo systemctl enable --now jenkins

You can also view the status of Jenkins using this command.

sudo systemctl status jenkins

If Jenkins is started successfully you will get a response similar to this.

Output
● jenkins.service - LSB: Start Jenkins at boot time
    Loaded: loaded (/etc/init.d/jenkins; generated)
    Active: active (exited) since Thu 2019-12-19 09:15:55 UTC; 19s ago
      Docs: man:systemd-sysv-generator(8)
     Tasks: 0 (limit: 1997)
    CGroup: /system.slice/jenkins.service

Set Up Jenkins

Once everything is done you can open your browser and enter your IP address followed by the Jenkins port 8080

The format will be like this http://instance_external_ip:8080

You will see the Unlock screen where you need to type the password to unlock Jenkins.

Unlock Jenkins

Execute the following command to get the password.

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Copy the password and paste it in the Administrator password field to unlock and start the setup.

Customize Jenkins

Click Install suggested plugins option to start the installation immediately.

Jenkins Getting Started

Once the installation is complete you can create an admin user to login to the dashboard.

Create Admin User

Finally you will see the Instance Configuration, you can use your domain name or IP address.

Click Save and Finish.

Once everything is complete click Start using Jenkins to visit the main Jenkins dashboard.

Welcome To Jenkins

Gain a skill set to cultivate a Continuous Integration and Continuous Deployment capability now

Conclusion

In this tutorial, you have learned how to install Jenkins and configured Firewall on Debian 10.

If you have any questions, please leave a comment below.

Tags: DebianGoogle Cloud PlatformJenkins
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Fantasy Minecraft Servers

5 Best Fantasy Minecraft Servers in 2023

September 21, 2023

How to Become an AI Trainer: Skills, Salary, and Career Opportunities

AI Statistics and Trends: What You Need to Know in 2023

Amazon Prime Big Deal Days 2023: Best Deals

AI Annotation Jobs: Everything You Need to Know

Top 7 Free Dating Sites for Men in 2023

Popular Articles

Google Bard Extension

Google Bard Extensions: How to Link Your Gmail, Docs, Maps, and More to an AI Chatbot

September 21, 2023

Easyerp AI: How to Create and Roleplay with AI Characters

Top 9 NSFW AI Story Writers to Try Today

Top 5 Free Linux Cloud Servers to Host Your Website

7 Best Deepswap AI Free Online Tools to Create FaceSwap Videos and Photos

Top 10 Advantages of a Cloud VPS Server

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.