Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

How to Run/Install Jenkins on Apache Tomcat Server

Posted on 02/19/2025 By admin

Best definition of Jenkins I found at official Jenkins Doc :-

Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software.

Jenkins can be installed through native system packages, Docker, or even run standalone by any machine with a Java Runtime Environment (JRE) installed.

Jenkins is typically run as a standalone application in its own process with the built-in Java servlet container/application server (Jetty). Jenkins can also be run as a servlet in different Java servlet containers such as Apache Tomcat or GlassFish.

In this post, we will learn installing Jenkins on Apache Tomcat Server step by step.

Installing Java should not be problem. Visit JDK Download web page and download as per your operating system and processor. DO NOT FORGET to set JAVA_HOME path in your system as Environment variables. If you face any issue in installing Java and setting up path, let me know in comments or send me a mail.

Verify Java installation:-

Verify JAVA_HOME path setup:-

Navigate to Apache Tomcat Server Website and select latest version. I will install Tomcat 9 as Tomcat 10 is an Alpha version.

Click on Tomcat 9 ( In my case) and go to Binary Distribution section and download appropriate as per your OS and processor. I will download for 64 bit Windows.

It will download a ZIP (Compressed file) and I hope you must know how can you unzip or extract a ZIP file.

Navigate to Jenkins Download page and download LTS – Jenkins WAR file as shown below:-

Copy jenkins.war file and go to extracted Apache tomcat folder. There you will find a folder named “webapps”.

Copied jenkins.war file.

Navigate to bin folder of Apache Tomcat Server. There you will find two window batch files:-

  1. startup – To start tomcat server. By default it starts at 8080 port.
  2. shutdown – To shutdown running tomcat server

Note – To start tomcat server on other port, go to conf folder in Apache tomcat folder. You will find a server.xml file. Change port to whatever you want. This is optional step.

To start tomcat server, click on “startup” window batch file. It will open command prompt and start server. Notice that it will deploy war file as well.

Since Jenkins is being installed first time, it will show that Jenkins initial setup is required and will generate an initial password which is required to unlock jenkins. No need to copy as it will be in jenkins installation file directory as well. Path will be provided in console.

Now if you go to webapps folder, you will see a “jenkins” folder is created.

Apache tomcat will start at 8080 by default. We have not changed any port so type “localhost:8080” in a web browser. You will see below page and a message on successful installation of Tomcat.

To access jenkins, just append /jenkins in above URL. You will be asked to unlock Jenkins by providing an initial admin password which is shown in Step 5 . You can copy it from file location to paste here. Submit password and click on Continue.

It will ask you to Customize jenkins by installing a good number of plugins. You can manually choose or install all suggested plugins. I will recommend to go for “Install suggested plugins“.

Plugin installation will take time. Let it be completed. Now it will ask you to create first admin user. You can skip it but better to create and click on “Save and Continue” button.

Now it will ask you to configure Jenkins URL. If you are on network, you need to change it so that you can access from other machine as well. Let’s not to worry about that and click on “Save and Finish” button.

You are done now. Click on “Start using Jenkins“.

You are at Jenkins Dashboard now.

To stop tomcat server, click on “shutdown” window batch file in bin folder of Apache tomcat. It will close the tomcat server cmd and shutdown tomcat server.

If you refresh jenkins url , it will show “This site can not be reached”.

If you have any doubt, feel free to comment below.If you like my posts, please like, comment, share and subscribe.#ThanksForReading

#HappyLearning

Uncategorized

Post navigation

Previous Post: scripts in postman
Next Post: Core Java Quiz – 2 – Arrays

Related Posts

February 15, 2019 – Make Selenium Easy Uncategorized
selenium 4 features Uncategorized
Hierarchy of Selenium Classes and Interfaces – Make Selenium Easy Uncategorized
July 18, 2018 – Make Selenium Easy Uncategorized
Git Tutorial 33 – How To Restore Deleted And Committed But Not Pushed File By GIT Reset? Uncategorized
Test Your Basics of Selenium WebDriver – Java By Answering These Interview Questions Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark