Set up Jenkins on Ubuntu 16.04

You can set up Jenkins on ubuntu 16.04 by following below simple steps.

   Step1: Add the repository key to the system
     
     $ wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
     
   Step2: Append the debian package repository address to the server's source.list
    
    $ echo deb http://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
    
    $ sudo apt-get update
    
   Step3:Install jenkins
   
    $ sudo apt-get install jenkins
    
   Step4:Start Jenkins
    
    $ sudo systemctl start jenkins
    $ sudo systemctl status jenkins
   
   Step5: Open firewall for the 8080 port which is default for jenkins.
   
    $ sudo ufw allow 8080
    $ sudo ufw status
    
   Step6: Setting up Jenkins:-Access your server URL with 8080 port and enter Authentication password by entering the below command.
       
    URL:http://ip_address_or_domain_name:8080
    Obtain password by running below command
    
    $ sudo cat /var/lib/jenkins/secrets/initialAdminPassword      

You are done.
Now you can continue by choosing “Install Suggested Plugins” then create and admin accounnt.

Leave a Reply

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