forked from rahulkj/pcf-concourse-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.yml
152 lines (136 loc) · 3.69 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
resource_types:
- name: pivnet
type: docker-image
source:
repository: pivotalcf/pivnet-resource
tag: latest-final
resources:
- name: govc
type: github-release
source:
user: vmware
repository: govmomi
access_token: ((github_token)) ## Optional: Removing this will cause you to hit the rate limit
- name: om-cli
type: github-release
source:
user: pivotal-cf
repository: om
access_token: ((github_token)) ## Optional: Removing this will cause you to hit the rate limit
- name: pipelines-repo
type: git
source:
uri: ((github_repo))
branch: ((github_branch))
username: ((github_username))
password: ((github_token))
- name: ops-manager
type: pivnet
source:
api_token: ((pivnet_token))
product_slug: ops-manager
product_version: ((opsman_product_version))
- name: concourse-trigger-gist
type: git
source:
uri: ((gist_url))
branch: master
username: ((github_username))
password: ((github_token))
jobs:
- name: delete-installation
plan:
- aggregate:
- get: pipelines-repo
- get: govc
params:
globs:
- "*linux_amd64*"
- get: om-cli
params:
globs:
- "*om-linux*"
- get: concourse-trigger-gist
- get: ops-manager
params:
globs: []
save: true
trigger: true
- task: delete-products
file: pipelines-repo/tasks/delete-products/task.yml
params:
DEBUG: ((debug))
OPS_MGR_HOST: ((ops_mgr_host))
OPS_MGR_USR: ((ops_mgr_usr))
OPS_MGR_PWD: ((ops_mgr_pwd))
- task: bump-timestamp
file: pipelines-repo/tasks/gist-update/task.yml
params:
DEBUG: ((debug))
CI_USERNAME: ((ci_username))
CI_EMAIL_ADDRESS: ((ci_email_address))
- put: concourse-trigger-gist
params: {repository: updated-concourse-trigger-gist}
- name: delete-ops-manager
plan:
- aggregate:
- get: pipelines-repo
passed: [delete-installation]
- get: govc
passed: [delete-installation]
params:
globs:
- "*linux_amd64*"
- get: om-cli
passed: [delete-installation]
params:
globs:
- "*om-linux*"
- get: concourse-trigger-gist
trigger: true
passed: [delete-installation]
- task: delete-ops-manager
file: pipelines-repo/tasks/delete-opsman/task.yml
params:
DEBUG: ((debug))
OPS_MGR_IP: ((ops_mgr_ip))
GOVC_INSECURE: 1
GOVC_URL: ((vcenter_host))
GOVC_USERNAME: ((vcenter_usr))
GOVC_PASSWORD: ((vcenter_pwd))
- name: unpause-install-pipeline
plan:
- aggregate:
- get: pipelines-repo
passed: [delete-ops-manager]
- get: concourse-trigger-gist
trigger: true
passed: [delete-ops-manager]
- task: change-pipeline-state
file: pipelines-repo/tasks/change-pipeline-state/task.yml
params:
DEBUG: ((debug))
CONCOURSE_USERNAME: ((concourse_username))
CONCOURSE_PASSWD: ((concourse_passwd))
ATC_EXTERNAL_URL: ((atc_external_url))
PIPELINE_NAME: ((install_pipeline_name))
TEAM_NAME: ((team_name))
PIPELINE_STATE: ((install_pipeline_state))
- name: pause-reinstall-pipeline
plan:
- aggregate:
- get: pipelines-repo
passed: [unpause-install-pipeline]
- get: concourse-trigger-gist
trigger: true
passed: [unpause-install-pipeline]
- task: change-pipeline-state
file: pipelines-repo/tasks/change-pipeline-state/task.yml
params:
DEBUG: ((debug))
CONCOURSE_USERNAME: ((concourse_username))
CONCOURSE_PASSWD: ((concourse_passwd))
ATC_EXTERNAL_URL: ((atc_external_url))
PIPELINE_NAME: ((reinstall_pipeline_name))
TEAM_NAME: ((team_name))
PIPELINE_STATE: ((reinstall_pipeline_state))