1) Create Spring Boot Microservice using spring initializer
2) Jenkins Job using Declarative pipeline
Steps: 1) Code Checkout 2)Build 3)Test 4)Docker Image 5)DockerHub
pipeline{
stage("code checkout")
git url
stage("Build")
mvn package
stage("test")
report should display on sonarqube
stage("docker mage build")
dockerfile ... copy artifact while creating image
docker build -t
stage(" Deploy Image to dockerhub")
docker push
stage("deploy application to dev host")
docker run
}
No comments:
Post a Comment