We are now at the heart of the CD design. We will not create a new pipeline; instead, we will build on the existing CI Multibranch Pipeline in Jenkins. The new CD pipeline will have the following stages:
- Fetch the code from the version control system (VCS) on a push event (initialization of the CI pipeline).
- Build and unit test the code; publish a unit test report on Jenkins.
- Perform static code analysis on the code and upload the result to SonarQube. Fail the pipeline if the number of bugs crosses the threshold defined in the quality gate.
- Perform integration testing; publish a unit test report on Jenkins.
- Upload the built artifacts to Artifactory along with some meaningful properties.
- Deploy the binaries to the testing environment. ...