Add stages to your Supply Chain

This topic tells you how to add a stage to a SupplyChain resource.

Caution

Tanzu Supply Chain is currently in beta and is not intended for production use. It is intended only for evaluation purposes for the next generation Supply Chain. For the current Supply Chain solution, see the Supply Chain Choreographer documentation.

Preparation

You must have:

Add a stage to an existing SupplyChain

This section describes how to add a stage to an existing SupplyChain resource if the SupplyChain resource has not been deployed to clusters used by developers.

Important

If the SupplyChain resource is in use by developers with existing running workloads, do not add a stage. Instead, create a new SupplyChain resource with an updated version in the name, such as MavenAppBuildv2.

Creating a new SupplyChain resource with every breaking Workload API change provides developers with a migration path and a chance to test their app on the new SupplyChain resource.

To add a stage:

  1. Add a component to the SupplyChain resource by adding the following YAML snippet between source-git-provider and the buildpack-build stage in your SupplyChain resource:

         - componentRef:
             name: COMPONENT-NAME
           name: unit-testing
    

    Where COMPONENT-NAME is the component name. For example, maven-unit-tester-1.0.0.

  2. Update the SupplyChain resource by running:

    NAMESPACE=mysupplychains make install
    

Useful links

check-circle-line exclamation-circle-line close-line
Scroll to top icon