CI-CD
JDK - COnfig
Jfrog - + Local repo - Select MAVEN - Repository Key ( from POM.xml <repostory>.<name> )
During cicd pipeline:
PIPELINE:
Setup - Compile - StaticAnalysis - UnitTest - CodeCoverage - War - ToArtifactary - SmokeTest
Mvn config:
Clean - compile - sonar:sonar - test - jacoco:report - war:war - deploy
- target/sure-fire/*.xml
- Publish Jacoco coverage report + target/.../coverage.xml
- Deploy war/ear to the server - */*.war , /com.ms.calc, AddContainer- TOMCAT9
- Setup -
build-3, Days-2,PollSCM- H/2 * * * *, Git/MavenProject details (from INDEX Page .git ) + check Branch, Delete,
(pre build) InvokeTopLevel-MyMaven, clean,
(post Build)-Achieve-**/*, next - Compile
- Compile -
build-3, Days-2,Delete
(pre build) Prev-Setup **/*, InvokeTopLevel-MyMaven- compile,
(post Build)-Achieve-**/*, next - StaticAnalysis
- StaticAnalysis
build-3, Days-2,Delete
(pre build) Prev-Compile**/* , InvokeTopLevel-MyMaven - sonar:sonar,
(post Build)-Achieve-**/*, next - UnitTest
- UnitTest-
build-3, Days-2, Delete
(pre build) Prev-StaticAnalysis **/* ,InvokeTopLevel-MyMaven - test,
(post Build)-Achieve-**/*, next - CodeCoverage, Publish Junit report + target/sure-fire/*.xml
- CodeCoverage-
build-3, Days-2, Delete
(pre build) Prev-UnitTest-**/* ,InvokeTopLevel-MyMaven - jacoco:report,
(post Build)-Achieve-**/*, next - War, Publish Jacoco coverage report + target/.../coverage.xml
- War-
build-3, Days-2, Delete
(pre build) Prev-CodeCoverage-**/* ,InvokeTopLevel-MyMaven - war:war,
(post Build)-Achieve-**/*, next - ToArtifactary
- ToArtifactary -
build-3, Days-2, Delete
(pre build) Prev-war- **/* ,InvokeTopLevel-MyMaven - deploy,
(post Build)-Achieve-**/*, next - SmokeTest
- SmokeTest-
build-3, Days-2, Delete
(pre build) Prev-war- **/*
(post Build)-Achive-**/*,
Deploy war/ear to the server - */*.war , /com.ms.calc, AddContainer- TOMCAT9 + url + password (Add from jenkins)
FOR NEW Branch
eclipse-project-team-switchTo-newBranch-BRANC1
Changes- POM-name (above<url>http://cal.ms.com line#10), sonar.projectKey
Comments
Post a Comment