Skip to content

Configure Jenkins 2.x with Tomcat 8.x in AWS (Amazon Linux AMI)

Notifications You must be signed in to change notification settings

carlosCharz/configurejenkinstomcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

Configure jenkins 2.x with tomcat 8.x in AWS (Amazon Linux AMI) to deploy a WAR

The objective is to create a Jenkins job to automatically deploy a built war file to a Tomcat instance. This project basically covers the configuration of Jenkins.

Software already installed

The machine already has the following software installed from my previous tutorials:

  1. Jenkins 2.x: This video explains how to install jenkins in an AWS EC2 instance.
  • Port: 8081
  1. Tomcat 8.x: This video explains how to install tomcat in an AWS EC2 instance.
  • Port: 8080
  • User: admin
  • Password: adminadmin

Software & Plugins to install

1. Git

sudo yum install git

To know the installation path:

which git
whereis git

output: /usr/bin/git

2. Java 8

  • It wil be installed automatically from Jenkins Tool Configuration (web).

3. Maven 3

  • It will be installed automatically from Jenkins Tool Configuration (web).

4. Deploy to Container plugin

  • It should be done manually.
  • Path: Manage Jenkins -> Manage Plugins -> Available -> Deploy to Container plugin
  • Restart Jenkins after installation.

Spring Project

Empty Spring Rest Project: GitHub link to download the empty spring rest project.

Jenkins Web Configuration Steps

1. Installation - Java Java

2. Installation - Git Git

3. Installation - Maven Maven

4. Job Configuration - Project Type Project Type

5. Job Configuration - General Data General Data

6. Job Configuration - Source Code Source Code

7. Build Configuration - Delete Workspace Delete Workspace

8. Build Configuration - Maven Goals Maven Goals

9. Post Build Configuration - Deploy WAR & Delete Workspace Deploy WAR

About

Configure Jenkins 2.x with Tomcat 8.x in AWS (Amazon Linux AMI)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published