Custom pipelines
Custom pipelines can be used to modify the regular pipelines to release or deploy projects. They can have additional steps along with the existing deployment steps. Custom pipelines do not have any UI but can be edited within the OpenShift Web Console.
Prerequisites
Access to the OpenShift Admin Console
Clear understanding of Tekton pipelines, pipeline runs, tasks, task runs, also experience in writing pipelines/tasks using YAML
A copy of the pipeline resources (yaml files) mentioned below.
Edit pipeline templates
There are pipeline tasks available for deploying Java and Node projects. Based on the project type choose a pipeline task and make the required changes:
Navigate to tasks in the installation namespace
Login to the OpenShift Admin Console
Choose the namespace where the Solution Hub is installed
Navigate to Pipelines → Pipelines/Tasks
Task template
Copy the following task(s) to be able to adjust them:
k5-release-java → for projects in Java (release and deploy)
k5-release-node → for projects in Node (release and deploy)
Update and save the copy of the pipeline task as per requirements.
Adjust your service project pipeline
Finally you need to open your service project pipeline(s) where you want to use the adjusted pipeline task (see taskRef in the task definition). Now you can trigger your pipeline again and the changed pipeline task will be used.