Simple Tekton Pipeline - Tekton-pipelines Typing CST Test
Loading…
Simple Tekton Pipeline — Tekton-pipelines Code
A simple Tekton pipeline to clone a Git repository and run tests.
# 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 testTekton-pipelines Language Guide
Tekton Pipelines is an open-source Kubernetes-native framework for creating CI/CD systems. It defines pipelines as Kubernetes custom resources that describe tasks, dependencies, and workflow orchestration.
Primary Use Cases
- ▸Kubernetes-native CI/CD pipelines
- ▸Automated build, test, and deploy workflows
- ▸Reusable and composable Tasks for multiple pipelines
- ▸Parallel and conditional task execution
- ▸Integration with GitOps and container registries
Notable Features
- ▸Kubernetes-native CRDs for pipelines, tasks, and resources
- ▸Reusable Tasks and Pipelines for modular workflows
- ▸Flexible parametrization and variable substitution
- ▸PipelineRuns and TaskRuns for execution tracking
- ▸Integration with GitHub, GitLab, and container registries
Origin & Creator
Created by the Continuous Delivery Foundation (CDF) in 2018 to standardize CI/CD on Kubernetes.
Industrial Note
Widely used in cloud-native environments, Kubernetes-native DevOps, GitOps workflows, automated testing, and continuous delivery of microservices.