Learn TEKTON-PIPELINES with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Simple Tekton Pipeline
# tekton/demo/pipeline.yaml
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: simple-pipeline
spec:
tasks:
- name: fetch-repo
taskRef:
name: git-clone
params:
- name: url
value: https://github.com/example/repo.git
- name: run-tests
taskRef:
name: kubectl-run
params:
- name: script
value: |
cd repo && npm install && npm test
A simple Tekton pipeline to clone a Git repository and run tests.