My Blog

Jenkins on cloud

1-click AWS Deployment    1-click Azure Deployment

1-click Google Deployment

Overview

Jenkins is an open source continuous integration tool written in Java. The project was forked from Hudson after a dispute with Oracle.

Jenkins provides continuous integration services for software development. It is a server-based system running in a servlet container such as Apache Tomcat. It supports SCM tools including AccuRev, CVS, Subversion, Git, Mercurial, Perforce, Clear case and RTC and can execute Apache Ant and Apache Maven based projects as well as arbitrary shell scripts and Windows batch commands. The primary developer of Jenkins is Kohsuke Kawaguchi. Released under the MIT License, Jenkins is free software.
Builds can be started by various means, including being triggered by commit in a version control system, by scheduling viae a cron-like mechanism, by building when other builds have completed and by requesting a specific build URL.

Jenkins is a cross-platform, continuous integration and continuous delivery application that increases your productivity. Use Jenkins to build and test your software projects continuously making it easier for developers to integrate changes to the project and making it easier for users to obtain a fresh build. It also allows you to continuously deliver your software by providing powerful ways to define your build pipelines and integrating with a large number of testing and deployment technologies.

Jenkins is owned by Jenkins (https://jenkins.io/) and they own all related trademarks and IP rights for this software.

Cognosys Provides Hardened images of Jenkins on the cloud ( AWS marketplace, Azure and Google Cloud Platform).

Deploy Jenkins securely on cloud i.e. AWS marketplaceAzure and Google Cloud Platform (GCP)

Secured Jenkins on Ubuntu 14.04 LTS

Features

Major Features of Jenkins :

Easy installation: Just run java -jar jenkins.war, deploy it in a servlet container. No additional install, no database. Prefer an installer or native package? We have those as well.
Easy configuration: Jenkins can be configured entirely from its friendly web GUI with extensive on-the-fly error checks and inline help.
Rich plugin ecosystem: Jenkins integrates with virtually every SCM or build tool that exists.
Extensibility: Most parts of Jenkins can be extended and modified and it’s easy to create new Jenkins plugins. This allows you to customize Jenkins to your needs.
Distributed builds: Jenkins can distribute build/test loads to multiple computers with different operating systems. Building software for OS X, Linux and Windows? No problem.

Azure

Installation Instructions For Ubuntu

Note : How to find PublicDNS in Azure

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Ubuntu instance on Azure Cloud

1) Download Putty.

2) Connect to the virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port: 22

Username: Your chosen username when you created the machine ( For example:  Azureuser)

Password: Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

unlock jenkins

Step 2) Application URL: Access the Web Interface via a browser at http://<your ip>:8080

Note: Get Admin password with cat/var/lib/jenkins/secrets/initialAdminPassword

Step 3) Other Information:

1. Default installation path: will be in your web root folder “/var/www/html/”
2. Default ports:

    • Http: 8080


Configure custom inbound and outbound rules using this link

3. To access Webmin interface for management please follow this link

Installation Instructions For Centos

Note : How to find PublicDNS in Azure

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Ubuntu instance on Azure Cloud

1) Download Putty.

2) Connect to the virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port: 22

Username: Your chosen username when you created the machine ( For example:  Azureuser)

Password: Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

unlock jenkins

Step 2) Application URL: Access the Web Interface via a browser at http://<your ip>:8080

Note: Get Admin password with cat/var/lib/jenkins/secrets/initialAdminPassword

Step 3) Other Information:

1. Default installation path: will be on your web root folder “/var/www/html/”
2. Default ports:

  • Http: 8080

Configure custom inbound and outbound rules using this link

3. To access Webmin interface for management please follow this link

Step by Step Screenshots:

jenkins dashboard

build history to track details of jenkins

manage settings in jenkins

credentials screen

user type and details

fill details to update user

edit item details

jenkins on cloud on asw azure and google cloud

Google

Installation Instructions For Windows

Step 1) VM Creation:

1.Click the Launch on Compute Engine button to choose the hardware and network settings.
2.You can see at this page, an overview of Cognosys Image as well as some estimated costs of VM.
3.In the settings page, you can choose the number of CPUs and amount of RAM, the disk size and type etc.

Step 2) RDP Connection: To initialize the DB Server connect to the deployed instance, Please follow Instructions to Connect to Windows instance on Google Cloud

Step 3) Database Login Details:

The below screen appears after successful deployment of the image.

successful deployment of the image

For local MySQL root password, please use the temporary password generated automatically during image creation as shown above.

i) Please connect to Remote Desktop as given in step 2 to ensure stack is properly configured and DB is initialized.
ii) You can use MySQL server instance as localhost, username root and password as shown above.

If you have closed the deployment page you can also get the MySQL root password from VM Details  “Custom metadata” Section

Step 4) Application URL: Access the application via a browser at http://<yourip>/jenkins

A) You will see the page where you can configure your site data with site name, jenkins admin name etc.

B) On next page you will see configuration success message.

C) You can login to the jenkins admin portal with the jenkins username and its generated password from point A shown above.

D) You can access the configured site at http://yourIP/jenkins

Installation Instructions For Redhat

Step 1) VM Creation:

  1. Click the Launch on Compute Engine button to choose the hardware and network settings.         
  2. You can see at this page, an overview of Cognosys Image as well as some estimated costs of VM.                                                                                                                                                   
  3.  In the settings page, you can choose the number of CPUs and amount of RAM, the disk size and type etc.Step 2) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Ubuntu instance on Google Cloud1) Download Putty.2) Connect to the virtual machine using SSH key
    • Hostname: PublicDNS  / IP of machine
    • Port : 22

    Step 3) Database Login Details:

    The below screen appears after successful deployment of the image.

    successful deployment of the image

    For local MySQL root password, please use the temporary password generated automatically during image creation as shown above.

    i) Please connect to Remote Desktop as given in step 2 to ensure stack is properly configured and DB is initialized.
    ii) You can use MySQL server instance as localhost, username root and password as shown above.

    If you have closed the deployment page you can also get the MySQL root password from VM Details  “Custom metadata” Section

    Step 4) Application URL: Access the application via a browser at http://<yourip>/jenkins

    A) You will see the page where you can configure your site data with site name, jenkins admin name etc.

    B) On next page you will see configuration success message.

    C) You can login to the jenkins admin portal with the jenkins username and its generated password from point A shown above.

    D) You can access the configured site at http://yourIP/jenkins

    Step 5) Other Information:

    1.Default ports:

    • Linux Machines:  SSH Port – 22

    2. To access Webmin interface for management please follow this link

Videos

Secured Jenkins on Ubuntu 14.04 LTS

How to Install Jenkins (Deploying, Upgrade, Apache, Nginx Proxy) in Ubuntu Server 15.10/14.04

Jenkins on cloud

Related Posts