Skip to content

Commit

Permalink
Common Expression Language Custom Tasks
Browse files Browse the repository at this point in the history
We propose using [`Custom Tasks`](https://github.com/tektoncd/pipeline/blob/master/docs/pipelines.md#using-custom-tasks)
to provide [Common Expression Language (CEL)](https://github.com/google/cel-spec) support in Tekton Pipelines
[without adding it to the API surface]((https://github.com/tektoncd/community/blob/master/design-principles.md)).
Users would define a [`Run`](https://github.com/tektoncd/pipeline/blob/master/docs/runs.md) type with
`apiVersion: cel.tekton.dev/v1alpha1` and `kind: CEL`. The `Run` would take the CEL expressions to be evaluated
as `Parameters` and would produce the `Results` of the evaluation with the same names as the `Parameters`. The `Results`
could be used in `WhenExpressions` or `Parameters` in subsequent `Tasks`.
  • Loading branch information
jerop committed Jan 21, 2021
1 parent 3072a20 commit 5e3934d
Show file tree
Hide file tree
Showing 2 changed files with 531 additions and 0 deletions.
Loading

0 comments on commit 5e3934d

Please sign in to comment.