Skip to main content

Course 4: CI/CD and Deployment

🎯Overview

In this course you will learn about Continuous Integration and Continuous Delivery and how the Workbench helps you to ship your newly developed features smoothly.

💡tip

If want to learn more about releasing of components please have a look at the HowTo Release a service.

Exercise​

Estimated time: 30 minutes

In this exercise, you will import and deploy the Product Catalog project.

Import Product Catalog project asset​

During the exercise, we will enhance the existing Product Catalog project. Therefore, you will first go to your workspace, then import a Project asset from the local marketplace of the Solution Designer.

Please perform the following steps:

  1. Open your Workspace in the Solution Designer and click on "Add Project".

  2. Select "Create project from asset".

  3. Select asset catalog Pizza Shop Assets.

  4. Select asset PEPROCTL to import the Product Catalog.

  5. In the next step, "View Details", you can see the operations provided by the project asset such as API Operations, Domain Services and Integration Services. Expand the section to get familiar with the content.

  1. Click on "Next". Now, you will be prompted to enter a set of meta data.

  2. Specify the necessary fields and click "Create".

Create and trigger a deploy pipeline​

In this section, we will create and trigger a deploy pipeline for the Product Catalog project that has been imported into your workspace. This steps are done to get changes directly built and deployed to a target destination.

Please perform the following steps:

  1. Click on CI/CD section in the navigation menu.

  2. You need to create a pipeline configuraton for your project once. To do so, click on the "Create" button.

  3. Choose "Deploy Pipeline" as type and use <your-deployment-target> as Deployment Target.

  4. Click "Create" at the bottom of the wizard.

  5. In case the pipeline does not get triggered automatically, use the three dot menu on right side of table row and click on the “Run” button.

Discover the service in Solution Envoy​

  1. Login into the Solution Envoy.

  2. Scroll through the services, and find your project which was deployed via the Deploy Pipeline. Your service is listed with the name k5-<serviceAcronym>(e. g. k5-xyzcrtl).

🌟result

Congratulations! You have successfully deployed the service

Create and trigger a release pipeline​

In this section, we will create and trigger a release pipeline for the Product Catalog project that has been imported into your workspace. This steps are done to get changes directly built and deployed to a target destination.

  1. Click on CI/CD section in the navigation menu.

  2. You need to create a pipeline configuraton for your project once. To do so, click on the "Create" button.

  3. Choose "Release Pipeline" as type.

  4. Click "Create" at the bottom of the wizard.

  5. In case the pipeline does not get triggered automatically, use the three dot menu on right side of table row and click on the “Run” button.

ℹ️note

To ship new changes in your service within a new release, you would have to set a new version for your service. To learn more about it please check How to release a service

🌟result

Good job! You have successfully created a new release of your service!

Please find more information about CI/CD and deployment: