Till now we have covered Pipeline or orchestration of different tasks and now let's integrate pipeline and deployment automation. By doing this, we will complete Continuous Integration and Continuous Delivery with orchestration. Let's try to integrate the deployment operation into the build pipeline.
We will need to perform the following tasks:
Compile source files.
Execute JUnit test cases.
Archive the artifact/WAR file: It is used to archive build artifacts, such as JAR files, WAR files, and ZIP files, so they can be downloaded later. Add Post-build Actions to
PetClinic-Testto archive the artifact:
Execute the build job, as shown in the following screenshot, and verify whether it has been successfully archived or not. If you see Finished: SUCCESS, then the build job was successfully executed:
We need to add a build step to copy artifacts from PetClinic-Test. Check the Copy Artifact Plugin checkbox, and then click on Install without restart: