-
Notifications
You must be signed in to change notification settings - Fork 2
/
05-say-things-in-order-pipeline.yaml
47 lines (47 loc) · 1.17 KB
/
05-say-things-in-order-pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
name: say-things-in-order-pipeline
annotations:
description: |
Sample pipeline saying things in different moments.
spec:
tasks:
- name: first-task
params:
- name: pause-duration
value: "2"
- name: say-what
value: "Hello, this is the first task"
taskRef:
name: say-something-task
- name: second-parallel-task
params:
- name: say-what
value: "Happening after task 1, in parallel with task 3"
- name: pause-duration
value: "2"
taskRef:
name: say-something-task
runAfter:
- first-task
- name: third-parallel-task
params:
- name: say-what
value: "Happening after task 1, in parallel with task 2"
- name: pause-duration
value: "1"
taskRef:
name: say-something-task
runAfter:
- first-task
- name: fourth-task
params:
- name: say-what
value: "Happening after task 2 and 3"
taskRef:
name: say-something-task
runAfter:
- second-parallel-task
- third-parallel-task