DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • How to Use Jenkins Effectively With ECS/EKS Cluster
  • Mastering Shift-Left: The Ultimate Guide to Input Validation in Jenkins Pipelines
  • Integrating Jenkins With Playwright TypeScript: A Complete Guide
  • Jenkins Pipelines With Centralized Error Codes and Fail-Fast

Trending

  • Build Self-Managing Data Pipelines With an LLM Agent
  • AWS Managed Database Observability: Monitoring DynamoDB, ElastiCache, and Redshift Beyond CloudWatch
  • You Don't Get to Retrofit Trust: Why API Security Must Be Designed In, Not Bolted On
  • Building a Production-Ready AI Agent in 2026: Beyond the Hello World Demo
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. How to Install Jenkins on the Apache Tomcat Server

How to Install Jenkins on the Apache Tomcat Server

Want to learn more about how to install Jenkins on the Apache Tomcat Server? Check out this tutorial on how to install Jenkins in this powerful Java container.

By 
Phi Nguyen user avatar
Phi Nguyen
·
Aug. 03, 18 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
20.4K Views

Join the DZone community and get the full member experience.

Join For Free

Jenkins is a powerful open source tool that enables you to automate tests and deployment. Apache Tomcat is a powerful servlet Java container for running web applications. If you are running your apps in Tomcat, or wish to do so, you might also want to run Jenkins in it. This blog post will explain how to do it.

If you are looking to install Jenkins in other ways, read how to install Jenkins on Windows, Ubuntu and with a WAR file.

Let’s get started!

First, install JDK. Jenkins supports Java 8. If you need help installing Java, go to this link.

Installing the Tomcat Server

If you don’t have Tomcat, start here. If you do, skip to the next section “Installing Jenkins.”

1. Go to the official Tomcat website and choose the Tomcat version to download. Here, I chose version 9.

2. Choose the appropriate binary for your machine. In this case, I chose the binary for Windows 64-bit.

3. Copy the downloaded zip file to the location of your choice and unzip it. In this example, I copied it to the folder C:\Tomcat.

4. Go to subfolder bin and click on the startup Windows bat file.

The Tomcat server will start.

how to start the tomcat server




5. Browse to the url http://localhost:8080 to launch the Tomcat server.

launching tomcat guide

Now, we can install Jenkins.

Installing Jenkins

1. Click here to download the latest Jenkins WAR file.

2. Copy the jenkins.war file to the subfolder webapps in the Tomcat installation. It will auto-generate a jenkins folder.

jenkins installation tutorial

3. Go to the url http://localhost:8080/jenkins to launch the initial Jenkins page.

jenkins page installation

4. To unlock Jenkins, paste the random password copied from the file C:\Users\<your_user_account_folder_name>\.jenkins\secrets\initialAdminPassword. Paste it in the Administrator password field and then click on the “Continue” button

jenkins, tomcat server, open source

5. Either click on “Install suggested plugins” to install the default plugins or “Select plugins to install” to install the plugins you want. In this case, we will install the default suggested plugins

installing jenkins plugins, learn how

6. The plugins will install. Wait until this process is completed.

step by step jenkins tomcat installation

7. Create your first admin user for Jenkins and click “Save and Continue.”

jenkins + tomcat server installing

8. Click “Save and Finish” to complete the installation!

how do i install jenkins with tomcat

9. This is the last step! Click on “Start using Jenkins” to open the default Jenkins page.

start using jenkins with tomcat

10. You can now start your job with Jenkins!

jenkins job with tomcat servlet


To learn how to use Jenkins, check out these resources:

  • The Continuous Testing academy
  • 2 Ways to Integrate JMeter Tests into Jenkins
  • How to Include Load Testing in your Continuous Integration Environment
  • Are You Using Jenkins the Right Way?
  • Running a JMeter Test via Jenkins Pipeline - A Tutorial
  • BlazeMeter’s Jenkins Plugin
  • Top Jenkins Plugins You Can’t Miss
Apache Tomcat Jenkins (software)

Published at DZone with permission of Phi Nguyen. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • How to Use Jenkins Effectively With ECS/EKS Cluster
  • Mastering Shift-Left: The Ultimate Guide to Input Validation in Jenkins Pipelines
  • Integrating Jenkins With Playwright TypeScript: A Complete Guide
  • Jenkins Pipelines With Centralized Error Codes and Fail-Fast

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook