-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.yml
133 lines (128 loc) · 3.33 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
resources:
- name: deploy-cube-app
type: cf
source:
api: https://api.run.pivotal.io
username: {{cf_username}}
password: {{cf_password}}
organization: seattle-beach
space: cube-drafter
- name: cube-ci
type: git
source:
uri: [email protected]:seattle-beach/cube-ci.git
branch: master
private_key: {{cube_ci_key}}
- name: cube-untap
type: git
source:
uri: [email protected]:seattle-beach/cube-untap.git
branch: master
private_key: {{cube_untap_key}}
- name: cube-draft
type: git
source:
uri: [email protected]:seattle-beach/cube-draft.git
branch: master
private_key: {{cube_draft_key}}
- name: pivotal-tracker
type: tracker
source:
token: {{pivotal_tracker_token}}
project_id: "2185360"
tracker_url: https://www.pivotaltracker.com
jobs:
- name: cube-untap
plan:
- aggregate:
- get: cube-ci
trigger: true
- get: cube-untap
trigger: true
- task: test-and-build
file: cube-ci/tasks/cube-untap/test-build.yml
- put: deploy-cube-untap-integ
resource: deploy-cube-app
params:
path: compiledApp/cube.jar
manifest: cube-untap/manifest.integ.yml
current_app_name: cube-untap-integ
environment_variables:
SPRING_PROFILES_ACTIVE: "seed-database"
- name: cube-draft-test
plan:
- aggregate:
- get: cube-ci
trigger: true
- get: cube-draft
trigger: true
- task: test
file: cube-ci/tasks/cube-draft/test.yml
- name: cube-draft-deploy-integ
serial: true
plan:
- aggregate:
- get: cube-ci
trigger: true
passed: ["cube-draft-test"]
- get: cube-draft
trigger: true
passed: ["cube-draft-test"]
- task: build
file: cube-ci/tasks/cube-draft/build.yml
- put: deploy-cube-draft-integ
resource: deploy-cube-app
params:
manifest: cube-draft-build/manifest.yml
current_app_name: cube-draft-integ
- name: integration-tests
serial: true
plan:
- aggregate:
- get: cube-ci
trigger: true
passed: ["cube-draft-deploy-integ","cube-untap"]
- get: cube-draft
trigger: true
passed: ["cube-draft-deploy-integ"]
- get: cube-untap
trigger: true
passed: ["cube-untap"]
- task: integration
file: cube-ci/tasks/cube-draft/integration.yml
- name: deploy-to-prod
serial: true
plan:
- aggregate:
- get: cube-ci
trigger: true
passed: ["integration-tests"]
- get: cube-draft
trigger: true
passed: ["integration-tests"]
- get: cube-untap
trigger: true
passed: ["integration-tests"]
- aggregate:
- task: build-cube-draft
file: cube-ci/tasks/cube-draft/build.yml
- task: build-cube-untap
file: cube-ci/tasks/cube-untap/test-build.yml
- aggregate:
- put: deploy-cube-draft-prod
resource: deploy-cube-app
params:
manifest: cube-draft-build/manifest.yml
current_app_name: cube-draft
- put: deploy-cube-untap-prod
resource: deploy-cube-app
params:
path: compiledApp/cube.jar
manifest: cube-untap/manifest.prod.yml
current_app_name: cube-untap
- put: pivotal-tracker
params:
repos:
- cube-ci
- cube-draft
- cube-untap