feat: add Jenkinsfile with test, build, and monorepo support#1314
feat: add Jenkinsfile with test, build, and monorepo support#1314TMQ2k wants to merge 1 commit intonashtech-garage:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a Jenkins pipeline configuration for a microservices monorepo. The pipeline automates testing and building of 22 Java-based services with selective execution based on code changes.
Changes:
- Adds comprehensive CI/CD pipeline with JDK 21 and Docker support
- Implements conditional stage execution using changeset patterns for each microservice
- Configures test reporting with JUnit and JaCoCo coverage for all services
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| sh 'chmod +x ../mvnw' | ||
| sh '../mvnw clean verify' |
There was a problem hiding this comment.
The chmod command is repeated in every test stage. Consider executing 'chmod +x mvnw' once at the pipeline level in an initial setup stage or as part of the environment configuration to reduce duplication and improve maintainability.
| when { changeset 'customer/**' } | ||
| steps { | ||
| dir('customer') { | ||
| sh '../mvnw package -DskipTests' |
There was a problem hiding this comment.
The build command 'mvnw package -DskipTests' is duplicated across all 22 build stages. Consider extracting this into a shared function or using a parameterized approach to reduce code duplication and make future changes easier to maintain.
No description provided.