Git Product home page Git Product logo

configurejenkinstomcat's Introduction

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

configurejenkinstomcat's People

Contributors

carloscharz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.