Jenkins pipeline example
-
This workflow consists of 3 components
-
Jenkins server
- Jenkins agent
-
Deployment machine
-
The
jenkins agentmust have installeddocker(for build image and push) andmaven(for build java code) - Generate the a
key-pairand give the public key to the jenkins agent (/config/.ssh/authorized-keys) and the private key to the jenkins master