-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsample-pipelines.gocd.yaml
95 lines (95 loc) · 2.37 KB
/
sample-pipelines.gocd.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
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
95
# GoCD Pipeline definitions - see https://github.com/tomzo/gocd-yaml-config-plugin
format_version: 4
pipelines:
action-movies:
group: movies
materials:
action:
plugin_configuration:
id: git-path
options:
url: https://github.com/TWChennai/gocd-git-path-sample.git
path: action
shallow_clone: true
stages:
- build:
jobs:
build:
tasks:
- script: ./run.sh action
action-movies-manual:
group: movies
materials:
action-manual:
plugin_configuration:
id: git-path
options:
url: https://github.com/TWChennai/gocd-git-path-sample.git
path: action
stages:
- build:
approval: manual
jobs:
build:
tasks:
- script: ./run.sh action
animation-movies:
group: movies
materials:
animation:
plugin_configuration:
id: git-path
options:
url: https://github.com/TWChennai/gocd-git-path-sample.git
path: animation
stages:
- build:
jobs:
build:
tasks:
- script: ./run.sh animation
animation-and-action-movies:
group: movies
materials:
animation-and-action:
plugin_configuration:
id: git-path
options:
url: https://github.com/TWChennai/gocd-git-path-sample.git
path: animation, action
shallow_clone: true
stages:
- build:
jobs:
build:
tasks:
- script: ./run.sh animation
- script: ./run.sh action
both:
group: movies
materials:
action:
pipeline: action-movies
stage: build
action-movies-manual:
pipeline: action-movies-manual
stage: build
animation:
pipeline: animation-movies
stage: build
animation-and-action-movies:
pipeline: animation-and-action-movies
stage: build
integration:
plugin_configuration:
id: git-path
options:
url: https://github.com/TWChennai/gocd-git-path-sample.git
path: integration
shallow_clone: true
stages:
- build:
jobs:
build:
tasks:
- script: echo "Run OK"