forked from rahulkj/pcf-concourse-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.yml
172 lines (156 loc) · 3.62 KB
/
pipeline.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
resource_types:
- name: pivnet
type: docker-image
source:
repository: pivotalcf/pivnet-resource
tag: latest-final
resources:
- name: om-cli
type: github-release
source:
user: pivotal-cf
repository: om
access_token: ((git_token)) ## Optional: Removing this will cause you to hit the rate limit
- name: pivnet-cli
type: github-release
source:
user: pivotal-cf
repository: pivnet-cli
access_token: ((git_token)) ## Optional: Removing this will cause you to hit the rate limit
- name: pipelines-repo
type: git
source:
uri: ((git_url))
branch: ((git_branch))
username: ((git_username))
password: ((git_token))
- name: pivnet-product
type: pivnet
source:
api_token: ((pivnet_token))
product_slug: ((product_name))
product_version: ((product_version))
- name: time-schedule
type: time
source: {interval: 24h}
- name: jq
type: github-release
source:
user: stedolan
repository: jq
access_token: ((git_token))
jobs:
- name: scheduler
plan:
- get: time-schedule
trigger: true
- get: pivnet-product
params:
globs: []
- name: upload-product
plan:
- aggregate:
- get: pipelines-repo
- get: pivnet-product
params:
globs:
- ((product_glob))
trigger: true
passed: [scheduler]
- get: om-cli
params:
globs:
- "*-linux"
- get: pivnet-cli
params:
globs:
- "*linux-amd64*"
- task: upload-tile
file: pipelines-repo/tasks/upload-product/task.yml
params:
DEBUG: ((debug))
OPS_MGR_HOST: ((ops_mgr_host))
OPS_MGR_USR: ((ops_mgr_usr))
OPS_MGR_PWD: ((ops_mgr_pwd))
PIVNET_API_TOKEN: ((pivnet_token))
- name: upload-stemcell
plan:
- aggregate:
- get: pipelines-repo
passed: [upload-product]
- get: pivnet-product
params:
globs:
- ((product_glob))
passed: [upload-product]
trigger: true
- get: om-cli
params:
globs:
- "*-linux"
passed: [upload-product]
- get: pivnet-cli
params:
globs:
- "*linux-amd64*"
passed: [upload-product]
- get: jq
params:
globs:
- "*linux64*"
- task: upload-stemcell
file: pipelines-repo/tasks/stemcell-uploader/task.yml
params:
DEBUG: ((debug))
OPS_MGR_HOST: ((ops_mgr_host))
OPS_MGR_USR: ((ops_mgr_usr))
OPS_MGR_PWD: ((ops_mgr_pwd))
PIVNET_API_TOKEN: ((pivnet_token))
IAAS_TYPE: ((iaas_type))
- name: stage-product
plan:
- aggregate:
- get: pipelines-repo
passed: [upload-stemcell]
- get: pivnet-product
params:
globs:
- ((product_glob))
passed: [upload-stemcell]
trigger: true
- get: om-cli
params:
globs:
- "*-linux"
passed: [upload-stemcell]
- task: stage-tile
file: pipelines-repo/tasks/stage-product/task.yml
params:
DEBUG: ((debug))
OPS_MGR_HOST: ((ops_mgr_host))
OPS_MGR_USR: ((ops_mgr_usr))
OPS_MGR_PWD: ((ops_mgr_pwd))
PRODUCT_IDENTIFIER: ((product_identifier))
- name: apply-changes
plan:
- aggregate:
- get: pipelines-repo
passed: [stage-product]
- get: om-cli
params:
globs:
- "*-linux"
passed: [stage-product]
- get: pivnet-product
resource: pivnet-product
params:
globs: []
passed: [stage-product]
trigger: true
- task: apply-changes
file: pipelines-repo/tasks/apply-changes/task.yml
params:
DEBUG: ((debug))
OPS_MGR_HOST: ((ops_mgr_host))
OPS_MGR_USR: ((ops_mgr_usr))
OPS_MGR_PWD: ((ops_mgr_pwd))