Installation of EC2 INSTANCE having Ubuntu , Installation of PUTTY, install Filezilla , configure the Jenkins:- 

05/09/2020

Installation of EC2 INSTANCE having Ubuntu :-

https://www.youtube.com/watch?v=yjPlMEDn-Q4

  1. SIGN UP TO CONSOLE
  2. Click on EC2 Instance
  3. Launch instance
  1. Choose an Amazon Machine Image (AMI)
    • Click on Ubuntu Server 18.04 LTS (HVM), SSD Volume Type - ami-0fc20dd1da406780b (64-bit x86) / ami-0959e8feedaf156bf (64-bit Arm)
    • Select
  1. Click on free tier (general method)
  2. Click on Configure Instance Details
  3. Click On Next Add Storage
  4. Next Add Storage

-Keep it default

  1. Click on Add Tags
  2. Next Configure security group
  3. Give some name to security group name
    And give some description
  4. Review and launch

Now new EC2 INSTANCE is created.

Installation of PUTTY:-

https://www.youtube.com/watch?v=UcT2auIKcn8

1) Go To putty.org

Click here to download putty

2) Click for 64 bit MSI

3) Now Search for putty gen in windows. Double click on it

This window will open click on key click on generate and save as private key with extension .ppk file. And save it at particular location.

Now install Filezilla

  1. This window will come

2) now click on Edit -> setting -> Now click on SFTP -> add key file(.pem file ) and click ok.

3) Now click on file -> SiteManager -> new file give it a name -> In the general setting section -> Host name will be that ec2 link which we have made in aws

And click on Connect.

4) now click on ok in this picture

Now we configure the Jenkins:-

Introduction and Getting Started:-

- java application

- used for continuous integration and continuous delivery

Step 1 : Download Jenkins war file - https://jenkins.io/

Step 2 : Place the war file into any location on your system

Step 3 : goto command prompt (windows) | terminal (mac)

- goto folder where jenkins.war is

- java -jar jenkins.war

Step 4 : goto browser - https://localhost:8080 (Jenkins window should show up)

Step 5 : install required plugins

Step 6 : get started with Jenkins

____________________________________________________________

To see hidden files/folders on mac:

1. Exit Finder

2. On terminal - defaults write com.apple.finder AppleShowAllFiles TRUE

3. Press option/alt - right click finder - relaunch

How to setup Jenkins on Tomcat

Running Jenkins standalone (jetty/winstone) vs Running Jenkins on Tomcat

Pre-requisite

***Tomcat 5 or above***

***java(7 or above) should be available***

(https://www.youtube.com/watch?v=FqpmH...)

Step 1 : Download Tomcat

Step 2 : Unzip and place tomcat folder at any location

Step 3 : Copy/Place the jenkins.war file inside tomcat/webapps folder

Step 4 : Goto commandpromt (cmd) - windows | terminal - mac

- goto tomcat/bin directory

- make all files executable : chmod +x *.sh

In case of windows this command will not work. This step might not be needed if you are on windows. Else you can right click on the file/folder goto security tab and change the permissions.

Can watch -

TOMCAT - How to install and run on Windows | Change Port | Run app

https://youtu.be/ZIIkrn6LHW0?list=PLh...

Step 5 : Start Tomcat : ./startup.sh

(to shutdown tomcat : ./shutdown.sh)

Step 6 : verify if tomcat started : browser - https://localhost:8080

Step 7 : verify if jenkins is running on tomcat : https://localhost:8080/jenkins

*** To start jenkins (standalone) on a diff port***

java -jar jenkins.war - - httpPort=9090

TOMCAT - How to install and run on Windows | Change Port | Run app

========================================================

1. How to download and start Tomcat on windows

2. Different methods of starting and stopping Tomcat

3. How to change Tomcat Port

4. How to run a application on Tomcat

Step 1 : Download Tomcat

Step 2 : Unzip tomcat folder and place at any location

Step 3 : Start Tomcat

A. Goto Tomcat/bin - click on startup.bat or startup.sh

B. Goto cmd - Tomcat/bin - startup.bat or startup.sh

C. Goto cmd - Tomcat/bin - catalina.bat start

Step 4 : Start Tomcat

A. Goto Tomcat/bin - click on shutdown.bat or shutdown.sh

B. Goto cmd - Tomcat/bin - shutdown.bat or shutdown.sh

C. Goto cmd - Tomcat/bin - catalina.bat stop

Step 5 : How to change default port 8080

- Goto Tomcat - Conf

- Edit server.xml

- Change port number at connector port

- save and restart tomcat

Step 6 : How to run application on tomcat

- place .war file inside Tomcat/ web apps

- restart tomcat

Jenkins Beginner Tutorial 3 - How to change Home Directory

=================================================

Jenkins Home Directory contains:

1. All configurations

2. Plugins

3. Jobs details

4. Logs

Why:

-To move jenkins home dir to a location that has enough disk space

-Project requirements

If you have installed jenkins on windows through msi file then read this - https://tech.nitoyon.com/en/blog/2014/...

Step 1 : Check your current home directory

Step 2 : Create a new folder (which will be new home dir)

Step 3 : Copy all data from old dir to new dir

Step 4 : change env variable - JENKINS_HOME and set to new dir

Windows - change env variable

Mac - goto terminaal

export JENKINS_HOME=/Users/raghav/Desktop/Tools/Jenkins/JenkinsHome/

Step 5 : restart Jenkins

____________________________________________________________

To see hidden files/folders on mac:

1. Exit Finder

3. Press option/alt - right click finder - relaunch

====================================================== .

How to use CLI (command line interface):-

Step 1 : start Jenkins

Step 2 : goto Manage Jenkins - Configure Global Security - enable security

Step 3 : goto - https://localhost:8080/cli/

Step 4 : download jerkins-cli jar. Place at any location.

Step 5 : test the jenkins command line is working

java -jar jenkins.war

How to create Users + Manage + Assign Roles

==========================================================

Jenkins authentication and authorization

Today we will learn:

-----------

How to create New Users

How to configure users

How to create new roles

How to assign users to roles

How to Control user access on projects

Step 1 : Create new users

Step 2 : Configure users

Step 3 : Create and manage user roles Roles Strategy Plugin - download - restart jenkins

Step 4 : Manage Jenkins - Configure Global Security - Authorisation - Role Based Strategy

Step 5 : Create Roles and Assign roles to users

Step 6 : Validate authorization and authentication are working properly

agrawal.akanksha137@gmail.com
Powered by Webnode
Create your website for free! This website was made with Webnode. Create your own for free today! Get started