-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfan-in-example.yml
94 lines (94 loc) · 2.39 KB
/
fan-in-example.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
pipelines:
- group: fan-in-example
pipeline:
name: build
label_template: 0.${COUNT}.0
materials:
- type: git
attributes:
url: https://github.com/dennisgranath/example-service.git
branch: master
stages:
- name: Build
jobs:
- name: build
tasks:
- type: exec
attributes:
command: /bin/bash
arguments:
- -c
- echo done
- group: fan-in-example
pipeline:
name: test
label_template: ${build}
materials:
- type: dependency
attributes:
pipeline: build
stage: Build
- type: git
attributes:
url: https://github.com/dennisgranath/example-service.git
branch: master
stages:
- name: Test
jobs:
- name: test
tasks:
- type: exec
attributes:
command: /bin/bash
arguments:
- -c
- echo done
- group: fan-in-example
pipeline:
name: perf-test
label_template: ${build}
materials:
- type: dependency
attributes:
pipeline: build
stage: Build
- type: git
attributes:
url: https://github.com/dennisgranath/example-service.git
branch: master
stages:
- name: Perf-test
jobs:
- name: perf-test
tasks:
- type: exec
attributes:
command: /bin/bash
arguments:
- -c
- sleep 60 && echo done
- group: fan-in-example
pipeline:
name: prod
label_template: ${perf-test}
materials:
- type: dependency
attributes:
pipeline: test
stage: Test
- type: dependency
attributes:
pipeline: perf-test
stage: Perf-test
stages:
- name: Prod
jobs:
- name: prod
tasks:
- type: exec
attributes:
command: /bin/bash
arguments:
- -c
- echo done