This project demonstrates an end-to-end Continuous Integration and Continuous Deployment (CI/CD) pipeline using DevOps tools. It automates the process of building, testing, and deploying a Java web application from source code to a running application on a server.
- Developer writes code and pushes to Git repository
- Code is hosted on GitHub
- Jenkins pulls the latest code automatically
- Build process using Ant/Maven
- Unit testing using JUnit
- Deployment to Tomcat server
- Application becomes available to users
- Git — Version Control
- GitHub — Code Repository
- Jenkins — CI/CD Automation Server
- Java — Application Development
- Ant / Maven — Build Tool
- JUnit — Testing Framework
- Tomcat — Application Server
Before running this project, ensure the following are installed:
- Git
- Java (JDK)
- Apache Tomcat
- Jenkins
- Ant or Maven
- Internet connection
- GitHub Plugin
- Ant Plugin
- JUnit Plugin
- Deploy Plugin
- Pipeline Plugin
SampleWebApp/
│
├── WebContent/ # Web pages and static content
├── src/example/ # Java source code
├── build/classes/ # Compiled classes
├── build.xml # Ant build script
├── checkstyle_errors.xml
├── sun_checks.xml
├── TestCalculator_JUnitResult.txt
└── README.md
- Clone the repository
git clone https://github.com/jitendar6486/SampleWebApp.git
cd SampleWebApp
-
Configure Jenkins job with GitHub repository
-
Set build steps using Ant/Maven
-
Configure deployment to Tomcat server
-
Run the pipeline
. Automated build . Automated testing . Automated deployment . Running web application on Tomcat
This project demonstrates how multiple DevOps tools work together to implement a fully automated CI/CD pipeline, enabling faster delivery, improved reliability, and reduced manual effort.