Deploying a war file from Jenkins to Tomcat

We will use the Deploy plugin available at https://wiki.jenkins-ci.org/x/CAAjAQ to deploy a war file into a specific container.

The Deploy plugin takes the war/ear file, and deploys it to a running local or remote application server at the end of a build.

It supports the following containers:

  • Tomcat: 4.x/5.x/6.x/7.x
  • JBoss: 3.x/4.x
  • Glassfish: 2.x/3.x

To deploy a war file in a Websphere container, use the Deploy WebSphere plugin available at https://wiki.jenkins-ci.org/x/UgCkAg.

To deploy a war file in a Weblogic container, use the WebLogic Deployer plugin available at https://wiki.jenkins-ci.org/x/q4ahAw.

  1. On the Jenkins dashboard, go to the Manage Jenkins link and then click on Manage Plugins and install Deploy ...

Get Jenkins Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.