Jenkins is an open source continuous integration/continuous delivery and deployment (CI/CD) automation software DevOps tool written in the Java programming language.
It is used to implement CI/CD workflows, called pipelines (by configuration files called Jenkinsfile or web ui ).
The need for Jenkins becomes especially acute when deploying to a microservices architecture. Since one of the goals of microservices is to frequently update applications and services, the ability to do so is relevant and significat.
Jenkins pipelines can be defined using a text file called JenkinsFile. You can implement pipeline as code using JenkinsFile, and this can be defined by using a domain specific language (DSL).
With JenkinsFile, you can write the steps needed for running a Jenkins pipeline in Groovy: a (declarative and/or scripting) multi-faceted language for the Java platform very similar to yaml (declarative o more declarative).
Create a job, configure and bulid it
First at all: general configuration (jdk, maven, plug-ins etc..)
Create a new job and configure it
Remember where we are working ... where wokspace is saved
Configuration alway is at http://localhost:8080/job/test/config.xml