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.
-
You have an existing Development workspace.
-
You have completed the steps listed in the Getting started in the CLI page.
Reset the build pipeline
In the CLI, complete the following steps to reset the build pipeline:
-
List your components.
$ kubectl get components
Example outputNAME AGE STATUS REASON TYPE devfile-sample-go-basic-8wqt 8m54s True OK Updated devfile-sample-python-basic-ikch 20d True OK Updated
-
Choose which component you want to reset.
$ kubectl edit component <component name>
-
While editing the component, add the request to
metadata.annotations
.
metadata: annotations: build.appstudio.openshift.io/request: "configure-pac"
-
Save the changes and exit the edit dialogue.
-
-
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 template pipeline
In the CLI, complete the following steps to change the build pipeline:
-
List your components.
$ kubectl get components
Example outputNAME AGE STATUS REASON TYPE devfile-sample-go-basic-8wqt 8m54s True OK Updated devfile-sample-python-basic-ikch 20d True OK Updated
-
Choose which component you want to reset.
$ kubectl edit component <component name>
-
While editing the component, update the pipeline to one of the configured pipelines 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"
-
Save the changes and exit the edit dialogue.
-
-
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.