Reconfiguring the build pipeline

After you have created a component Konflux, you may find yourself in a situation where you want to reset your build pipeline to the latest version. For instance:

  • If you have made changes to your build pipeline and the pipeline no longer works.

  • You discover that a new pipeline is available that you want to change to.

  • You cannot figure out how to update your build pipeline to resolve breaking changes in the task updates.

Prerequisites
  • You have an existing Development workspace.

  • Ensure you have installed oc.

  • You have completed the steps listed in the Getting started in the CLI page.

Reset the build pipeline

Procedure

In the CLI, complete the following steps to reset the build pipeline:

  1. List your components.

    $ oc get components
    Example output
    NAME                               AGE   STATUS   REASON   TYPE
    devfile-sample-go-basic-8wqt       8m54s True     OK       Updated
    devfile-sample-python-basic-ikch   20d   True     OK       Updated
  2. Choose which component you want to reset.

    $ oc edit component <component name>
    1. While editing the component, add the request to metadata.annotations.

    metadata:
      annotations:
        build.appstudio.openshift.io/request: "configure-pac"
    1. Save the changes and exit the edit dialogue.

  3. Review and merge the created pull request.

    Konflux will submit a pull request to reset the Tekton pipeline in your git repository which will not have any previous customizations included. If you made changes that you want to preserve, you will need to re-apply these changes.

Changing to a different default pipeline

Procedure

In the CLI, complete the following steps to change the build pipeline:

  1. List your components.

    $ oc get components
    Example output
    NAME                               AGE   STATUS   REASON   TYPE
    devfile-sample-go-basic-8wqt       8m54s True     OK       Updated
    devfile-sample-python-basic-ikch   20d   True     OK       Updated
  2. Choose which component you want to reset.

    $ oc edit component <component name>
    1. While editing the component, update the pipeline and add the request to configure PAC to metadata.annotations.

    metadata:
      annotations:
        build.appstudio.openshift.io/pipeline: '{"name":"<name-of-the-pipeline-to-use>","bundle":"latest"}'
        build.appstudio.openshift.io/request: "configure-pac"
    1. Save the changes and exit the edit dialogue.

  3. Review and merge the created pull request.

    Konflux will submit a pull request to reset the Tekton pipeline in your git repository which will not have any previous customizations included. If you made changes that you want to preserve, you will need to re-apply these changes.