Event Target for Tekton Pipeline
- Tekton Task
Creating a Tekton Task
From TriggerMesh, go to Tasks, and click the
Create Task button. A
menu will drop down providing the option to create the task
from YAML or
with wizard. Select
Give the task a name that will be referenced later on by the Target, and click
the arrow to expose the task details. Provide a name for
Step 1, specify
the build image to use as well as the command and arguments to run. Click
ADD MORE if more steps will be required. When finished, click
The task should appear in the Tasks page. Now to create the Target.
Refer to the Tekton documentation for more information about how to create tasks and pipelines.
Deploying an Instance of the Target
From TriggerMesh, open the Bridge creation screen and add a Target of type
In the Target creation form, provide a name for the event Target, and click
After clicking the
Save button, the console will self-navigate to the Bridge editor. Proceed by adding the remaining components to the Bridge.
After submitting the Bridge, and allowing for some configuration time, a green check mark on the main Bridges page indicates that the Bridge with the Tekton Target was successfully created.
Events of this type intend to create a new Tekton
This type expects a JSON payload with the following properties:
|buildType||string||The run object type consisting of
|params||map[string]string||Dictionary mapping of parameters to pass to the Tekton task or pipeline|
No response events are created with this Target type.
PipelineRun objects nor their associated pods are deleted after execution.
It is up to the user to perform the clean-up.