Pipeline definition for Java Custom solutions
The Pipeline is structured in the following procedure (Pipeline Tasks and Steps):
Build and Deploy Pipeline Tasks
The Build and Deploy Pipeline for Java Custom Solutions contains the following Tasks:
k5-build-managed-java
k5-deploy
Deploy Pipeline Tasks
The Deploy Pipeline for Java Custom Solutions contains the following Task:
k5-deploy
Task Steps Overview
Task Steps Build (k5-build-managed-java)
- maven-build
- prepare-solution-docker
- pack-helm-chart
- pack-installation-image
Task Steps Deploy (k5-deploy)
- pepare-image
- prepare-deploy-solution
- deploy-solution
- complete-deploy-solution
Task Steps Build (k5-build-managed-node
)
The Build part of the pipeline prepares the needed Solution Envoy files from the design time, builds and packs the artifacts needed for the deployment:
maven-buildThe job mainly follows the build lifecycle basics of maven. The Custom Solution project will be validated, compiled, tested by executing the provided unit tests and afterwards packaged in it‘s distributable format.
prepare-solution-docker
Creates the docker image containing the needed denormalized model files for the
solution and the deploy jobs of the solution. The created docker image will be saved as tar file,
packed in the result image (see pack-installation-image
) and then used in the
deploy-solution
step.
pack-helm-chart
Creates the helm chart for deploying the solution. This helm chart is packed in the
result image (see pack-installation-image
) and then used in the
deploy-solution
step.
pack-installation-image
Packs the created helm chart and the solution docker image (tar file) into the result image
(image name: solutionAcronym:imageTag
) and pushes it into the OpenShift Registry.
That is needed that the built solution artifacts
can be used in the Deploy part of a Build and Deploy Pipeline and in a Deploy Pipeline in another Solution Envoy.
Task Steps Deploy (k5-deploy
)
The Deploy Task of the Pipeline deploys the Solution into the Envoy and runs the Solution Tests if they exists:
prepare-image
Copies the image (containing the created solution image and solution helm chart) from the configured Source (project and image tag) into the current Solution Envoy.
prepare-deploy-solution
Unpacks the artifacts (created solution image as tar file and the solution helm chart) from the image (see prepare-image step) and push the solution image into the current namespace.
deploy-solution
It deploys the solution into the Solution Envoy using solution helm chart. The needed
helm variables for the solution deployment (configuration name
ssob-sdo-values-yaml
) are provided by the configuration
management (see solution specific configuration).
complete-deploy-solution
Prepares the result image (containing the created solution image and solution helm chart) for the next stage.