-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEP-0090: Matrix - Add example and document expected PipelineRun status
[TEP-0090: Matrix][tep-0090] proposed executing a `PipelineTask` in parallel `TaskRuns` and `Runs` with substitutions from combinations of `Parameters` in a `Matrix`. Milestone 1 of the implementation plan - fan out `PipelineTasks` with `Tasks` into `TaskRuns` - is completed. In this change, we add an example `PipelineRun` with a `Matrix` and document the expected status of the `PipelineRun` upon completion. [tep-0090]: https://github.com/tektoncd/community/blob/main/teps/0090-matrix.md
- Loading branch information
1 parent
5375e76
commit f46ac9f
Showing
2 changed files
with
144 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
examples/v1beta1/pipelineruns/alpha/pipelinerun-with-matrix.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: platform-browsers | ||
annotations: | ||
description: | | ||
A task that does something cool with platforms and browsers | ||
spec: | ||
params: | ||
- name: platform | ||
- name: browser | ||
steps: | ||
- name: echo | ||
image: alpine | ||
script: | | ||
echo "$(params.platform) and $(params.browser)" | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
generateName: matrixed-pr- | ||
spec: | ||
serviceAccountName: 'default' | ||
pipelineSpec: | ||
tasks: | ||
- name: platforms-and-browsers | ||
matrix: | ||
- name: platform | ||
value: | ||
- linux | ||
- mac | ||
- windows | ||
- name: browser | ||
value: | ||
- chrome | ||
- safari | ||
- firefox | ||
taskRef: | ||
name: platform-browsers |