Install Jenkins on Ubuntu 18.04

by Ismail.EL
0 comment

Contents

Install Java.

Since Jenkins is a Java application, the first step is to install Java. Update the package index and install the Java 8 OpenJDK package with the following commands:

Add Jenkins Repository

To start, first add Jenkins’s signing key and repository using the below commands:

next, make a choice whether you wish to install stable or latest Jenkins server version:

Install Jenkins

Once the repository is included, all what remains to install Jenkins on Ubuntu 18.04 is to execute:

Adjusting Firewall

If you are installing Jenkins on a remote Ubuntu server that is protected by a firewall you’ll need to open port 8080. Assuming you are using UFW to manage your firewall, you can open the port with the following command:

Verify the change with:

Setting Up Jenkin

To be able to login to the new Jenkins server installation first obtain an initial password:

To set up your installation, visit Jenkins on its default port, 8080, using your server domain name or IP address: http://your_server_ip_or_domain:8080

You should see the Unlock Jenkins screen, which displays the location of the initial password:

Copy the 32-character alphanumeric password from the terminal and paste it into the Administrator password field, then click Continue.

The next screen presents the option of installing suggested plugins or selecting specific plugins:

We’ll click the Install suggested plugins option, which will immediately begin the installation process:

Once the plugins are installed, you will be prompted to set up the first admin user. Fill out all required information and click Save and Continue.

Enter the name and password for your user:

Confirm the URL by clicking on the Save and Finish button and the setup process will be completed, You will see a confirmation page confirming that “Jenkins is Ready!”:

Click Start using Jenkins to visit the main Jenkins dashboard:

At this point, you have completed a successful installation of Jenkins.

3280cookie-checkInstall Jenkins on Ubuntu 18.04

Related Posts

Leave a Comment