Creating a pipeline to be triggered
To test out your triggers, you will first need a pipeline that can be triggered. By now, you should have a pretty good knowledge of how to build your pipelines. In this pipeline, you will use the same task as the one called logger
that you built in Chapter 5, Jumping into Pipelines. Let's now create a new file called pipeline.yaml
, which will contain the following task:
apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: logger spec: params: - name: text type: string steps: - name: log image: registry.access.redhat.com/ubi8/ubi-minimal script: | DATE=$(date +%d/%m/%Y\ %T) echo [$DATE] - $(params.text)
The pipeline itself will have a...