π Jenkins CI Pipeline with Maven and Spring Boot
π Project Overview
This project demonstrates a Continuous Integration (CI) pipeline using Jenkins integrated with GitHub.
The application is a simple Spring Boot Employee API built using Maven, and Jenkins automatically builds the project by reading the Jenkinsfile from the GitHub repository.
The pipeline runs multiple stages to build, test, and package the application, producing a JAR artifact.
This project demonstrates how modern DevOps workflows automate:
Pulling source code from GitHub
Building the application using Maven
Running automated tests
Packaging the application as an executable JAR
Generating build artifacts using Jenkins CI
βοΈ Tech Stack
Java 17
Spring Boot
Maven
Jenkins
Git
GitHub
π Project Structure jenkins-ci β βββ Jenkinsfile βββ pom.xml βββ README.md βββ src βββ main βββ java/com/example/employee β βββ EmployeeApiApplication.java β βββ HelloController.java β βββ resources βββ application.properties βοΈ Jenkins Pipeline Stages
The pipeline defined in the Jenkinsfile contains the following stages:
1οΈβ£ Checkout
Pulls the source code from the GitHub repository.
2οΈβ£ Build mvn compile
Compiles the application source code.
3οΈβ£ Test mvn test
Runs the automated tests.
4οΈβ£ Package mvn package
Packages the application and generates the final JAR artifact.
π¦ Generated Artifact
After the pipeline execution, Maven generates the application artifact:
target/employee-api-1.0.jar
This artifact can later be used for deployment in servers, containers, or cloud environments.
π CI Pipeline Workflow
Developer Push Code β GitHub
β
Jenkins
β
Checkout
β
Build
β
Test
β
Package
β
Artifact (.jar)
The generated artifact can be executed manually:
java -jar target/employee-api-1.0.jar
Then access in browser:
Example response:
Welcome to Employee API - Jenkins CI Pipeline Working! π― What This Project Demonstrates
This project proves understanding of:
Jenkins CI pipeline creation
GitHub integration with Jenkins
Pipeline as Code using Jenkinsfile
Maven build lifecycle
Automated build, test, and packaging
Artifact generation in CI pipelines
πΌ Why This Project Matters
This repository demonstrates how DevOps engineers automate application builds using Continuous Integration pipelines.
It reflects real-world practices such as:
Build automation
CI pipeline orchestration
Source control integration
Artifact generation for deployment pipelines
π¨βπ» Author
Developed as part of hands-on practice to strengthen AWS, DevOps, and CI/CD pipeline skills.