Skip to main content

How to Install Jenkins on Ubuntu 19.04

Jenkins is a Java based software which can be installed from the Ubuntu packages. Jenkins is mainly used for Continues Integration and Continuous Deployment (CI CD). On this tutorial, we will install Jenkins on Ubuntu 19.04.

Before you start, please prepare yourself. You have Ubuntu 19.04 installed on your PC/Laptop/Server. Java 8 is already installed.


Prepare Firewall Rules for Jenkins


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.

  • In Name enter jenkins
  • In Targets select All instances in the network
  • In Source filter select IP ranges
  • In Source IP ranges enter 0.0.0.0/0
  • In Protocols and ports check TCP and enter 8080
  • Click Create.

Installing 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

Once the installation is complete you can start Jenkins using the following command.sudo systemctl start 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-06-06 09:15:55 UTC; 46s ago
      Docs: man:systemd-sysv-generator(8)
     Tasks: 0 (limit: 1997)
    CGroup: /system.slice/jenkins.service

Setting 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://ip_address:8080

You will see the Unlock screen where you need to type the password to 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.
  • Click Install suggested plugins option to start the installation immediately.
  • Once the installation is complete you can create an admin user to login to the dashboard.
  • 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.


Comments

Popular posts from this blog

How to Install Traefik in Debian (Without Docker)

 Download the suitable version of Traefik for your system from here: https://github.com/traefik/traefik/releases as an example, we'll be download the linux 64 bit version: wget https://github.com/traefik/traefik/releases/download/v2.8.7/traefik_v2.8.7_linux_amd64.tar.gz extract those package: tar -xzvf traefik_v2.8.7_linux_amd64.tar.gz set the traefik as executable and move the traefik binary to linux bin folder

Create AdminLTE Dashboard with NextJS

Sure, you can create an AdminLTE dashboard in a Next.js project using TypeScript. Here's a step-by-step guide:  Create a Next.js Project with TypeScript:  If you haven't already, create a new Next.js project with TypeScript by running the following commands: npx create-next-app my-adminlte-dashboard --use-npm --typescript cd my-adminlte-dashboard Install Dependencies: 

Cara Disable Antimalware Service Executable di Windows 10

Disadari atau tidak, Windows 10 (dan juga windows-windows lainnya) hadir dengan banyak sekali aplikasi bloatware (aplikasi yang tidak perlu-perlu amat dimiliki oleh end user). Contohnya, adalah aplikasi yang seharusnya sudah tergantikan fungsinya oleh antivirus, seperti Antimalware Service Executable . Aplikasi ini dicurigai membuat Windows 10 mengalami inefisiensi memori/RAM, memakan resource yang tinggi, dengan Load yang tinggi (tanpa limit terkadang). Nah, berikut adalah cara men-disable nya: Tekan tombol Windows + I untuk membuka apliaksi Windows Setting. Pilih icon menu Update and Security Pilih lagi menu disamping kiri Windows Security Pada jendela baru yang muncul, ada pilihan Virus & Threat protection Klik ini Lalu matikan proses Real-time protection tersebut. Dengan Regedit. Buka dialog regedit, Windows + R dan ketik ‘regedit’ Cari Folder regedit ini HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender Buat sebuah DWORD baru dengan klik kanan