Setup Jenkins on Ubuntu 18.04 on AWS Lightsail

I couldn't find a guide for this - and I had to do this recently. So here goes!


1. Install Java

sudo apt update && sudo apt install -y openjdk-8-jdk

2. Add the Jenkins Debian repository

wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -

3. Add the repo to system

sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

4. Install Jenkins

sudo apt update
sudo apt install jenkins
systemctl status jenkins

5. Add firewall rule

In AWS lightsail > click on instance > networking tab > under firewall - add rule > Custom TCP 8080

6. Reboot instance

7. Navigate to

http://your_instance_ip_or_domain:8080

8. Back in the lightsail instance terminal, get the jenkin one-time jenkins password, to unlock jenkins!

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

9. Click install suggested plugins. and that's it!

SNAPPED!

Comments

  1. Amazing Blog ,Very useful to Visit Your page , Keep Updating More .
    JAVA Training in Chennai
    Java Training in Bangalore

    ReplyDelete
  2. Great blog. Thanks for sharing such a useful information.
    Java training chennai

    ReplyDelete


  3. Hey friend, it is very well written article, thank you for the valuable and useful information you provide in this post. Keep up the good work! FYI, please check these depression, stress and anxiety related articles.
    How to Build a Portfolio with ETFs, My vision for India in 2047 postcard, Essay on Unsung Heroes of Freedom Struggle

    ReplyDelete
  4. Great Article Cloud Computing Projects

    Networking Projects

    Final Year Projects for CSE

    JavaScript Training in Chennai

    JavaScript Training in Chennai

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

    ReplyDelete
  5. This post is so interactive and informative.keep update more information…
    graphic design courses in velachery
    graphic design courses in Chennai


    ReplyDelete

  6. This post is so interactive and informative.keep update more information...
    DevOps course in Tambaram
    DevOps Training in Chennai

    ReplyDelete

Post a Comment

Popular posts from this blog

Append to a json file python

Setup Mailhog mail server on Ubuntu