go to  ForumEasy.com   
JavaPro  
 
 
   Home  |  MyForum  |  FAQ  |  Archive    You are not logged in. [Login] or [Register]  
Forum Home » Ubuntu » How To Install Jenkins on Ubuntu 16.04 Box
Email To Friend  |   Set Alert To This Topic Rewarding Points Availabe: 0 (What's this) New Topic  |   Post Reply
Author Topic: How To Install Jenkins on Ubuntu 16.04 Box
Linux
member
offline   
 
posts: 120
joined: 01/24/2011
from: San Jose, CA
  posted on: 10/23/2017 06:46:01 PM    Edit  |   Quote  |   Report 
How To Install Jenkins on Ubuntu 16.04 Box

Introduction

Jenkins is an open source automation server intended to automate repetitive technical tasks involved in the continuous integration and delivery of software. Jenkins is Java-based and can be installed from Ubuntu packages or by downloading and running its Web application ARchive (WAR) file. For the latter, it is only relevant to Java Servlet Container (e.g. Apache Tomcat) and the installation process should be good for any OS including Ubuntu.


Prerequisites

  • Tomcat 8 (with Java 8) which is running on Ubuntu 16.04 box
  • At least 1 GB of RAM

  •  Profile | Reply Points Earned: 0
    Linux
    member
    offline   
     
    posts: 120
    joined: 01/24/2011
    from: San Jose, CA
      posted on: 10/23/2017 06:47:24 PM    Edit  |   Quote  |   Report 
    Step 1: Download Jenkins .war file
  • Goto https://jenkins.io/download/
  • Select Generic Java package (.war)
  • You now have jenkins.war (version 2.73.2) in your local Windows machine
  •  Profile | Reply Points Earned: 0
    Linux
    member
    offline   
     
    posts: 120
    joined: 01/24/2011
    from: San Jose, CA
      posted on: 10/23/2017 06:49:21 PM    Edit  |   Quote  |   Report 
    Step 2: Upload to Ubuntu 16.04 box
  • WinSCP to your Ubuntu 16.04 box
  • Upload jenkins.war to /tmp --> (Rights: rw-rw-r-- Owner: administrator)
  • PuTTy to Ubuntu 16.04 box

    $ cd /tmp
    $ sudo cp jenkins.war /opt/tomcat/apache-tomcat-8.5.23/webapps/ --> (Rights: rw-r--r-- Owner: root)
    


    The service should be automatically deployed under folder ./webapps/jenkins (Rights: rwxr-x--- Owner: administrator)

    The built-in administrative user password can be found by:
    $ cat /opt/tomcat/apache-tomcat-8.5.23/logs/catalina.out 
    
    *************************************************************
    Jenkins initial setup is required. An admin user has been created and a password generated.
    Please use the following password to proceed to installation:
    
    62194ddcaebf4b9798320725075d7354
    
    This may also be found at: /home/administrator/.jenkins/secrets/initialAdminPassword
    *************************************************************
    

  •  Profile | Reply Points Earned: 0
    Linux
    member
    offline   
     
    posts: 120
    joined: 01/24/2011
    from: San Jose, CA
      posted on: 10/23/2017 07:01:10 PM    Edit  |   Quote  |   Report 
    Step 3: Set up Jenkins
    Page #1:

    http://10.11.12.13:8080/jenkins --> http://10.11.12.13:8080/jenkins/login?from=%2Fjenkins%2F

    Unlock Jenkins
    To ensure Jenkins is securely set up by the administrator, a password has been written to the log (not sure where to find it?) and this file on the server:

    /home/administrator/.jenkins/secrets/initialAdminPassword

    Please copy the password from either location and paste it below.

    Administrator password
    xxxxxxxx


    Page #2:

    Customize Jenkins
    Plugins extend Jenkins with additional features to support many different needs.

    Select Suggested Plugins:

    (If your JVM has limited RAM resource (e.g. ~512MB), you may experience the OutOfMemory error at the plugins loading stage)


    Page #3:

    When the installation is complete, you will be prompted to Create First Administrative User.
    Username: <admin>
    Password: <password>
    Full name:
    E-mail address:

    Page #4:

    Once the first admin user is in place, you should see a "Jenkins is ready!" confirmation screen.


    Page #5:

    Click "Start using Jenkins" to visit the main Jenkins dashboard. At this point, Jenkins has been successfully installed.

     Profile | Reply Points Earned: 0

     
    Powered by ForumEasy © 2003-2005, All Rights Reserved. | Privacy Policy | Terms of Use
     
    Get your own forum today. It's easy and free.