-
Notifications
You must be signed in to change notification settings - Fork 39
/
pipeline.yml
986 lines (937 loc) · 26.6 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
---
meta:
generate-versions-file: &generate-versions-file
task: generate-versions-file
image: pcf-ops
file: control-tower/ci/tasks/generate-versions-file.yml
create-release: &create-release-files
do:
- in_parallel:
- get: pcf-ops
passed: [release-notification]
- get: control-tower
passed: [release-notification]
- get: build-metadata
- get: release-versions
- *generate-versions-file
- in_parallel: &build_binaries
- task: build-linux-amd64
image: pcf-ops
params:
GOOS: linux
GOARCH: amd64
OUTPUT_FILE: control-tower-linux-amd64
file: control-tower/ci/tasks/build_from_version_file.yml
output_mapping:
build: build-linux-amd64
- task: build-darwin-amd64
image: pcf-ops
params:
GOOS: darwin
GOARCH: amd64
OUTPUT_FILE: control-tower-darwin-amd64
file: control-tower/ci/tasks/build_from_version_file.yml
output_mapping:
build: build-darwin-amd64
- task: build-darwin-arm64
image: pcf-ops
params:
GOOS: darwin
GOARCH: arm64
OUTPUT_FILE: control-tower-darwin-arm64
file: control-tower/ci/tasks/build_from_version_file.yml
output_mapping:
build: build-darwin-arm64
- task: get-ops-version
image: pcf-ops
file: control-tower/ci/tasks/get-ops-version.yml
params:
CONCOURSE_PASSWORD: ((ebci_password))
CONCOURSE_URL: https://ci.engineerbetter.com
- task: write-release-vars
image: pcf-ops
file: control-tower/ci/tasks/write-release-vars.yml
input_mapping:
old-versions: release-versions
new-versions: versions-file
publish-release: &publish-release
do:
- put: release
inputs:
- build-linux-amd64
- build-darwin-amd64
- build-darwin-arm64
- release-vars
- version
- versions-file
params:
name: release-vars/name
commitish: release-vars/commit
body: release-vars/body
tag: version/version
globs:
- build-linux-amd64/control-tower-linux-amd64
- build-darwin-amd64/control-tower-darwin-amd64
- build-darwin-arm64/control-tower-darwin-arm64
- in_parallel:
- put: release-versions
params:
file: versions-file/release-versions.json
- put: version
resource: version
params:
file: version/version
publish-draft-release: &publish-draft-release
do:
- put: release-drafts
inputs:
- build-linux-amd64
- build-darwin-amd64
- build-darwin-arm64
- release-vars
- version
- versions-file
params:
name: release-vars/name
commitish: release-vars/commit
body: release-vars/body
tag: version/version
globs:
- build-linux-amd64/control-tower-linux-amd64
- build-darwin-amd64/control-tower-darwin-amd64
- build-darwin-arm64/control-tower-darwin-arm64
- in_parallel:
- put: release-versions
params:
file: versions-file/release-versions.json
- put: version
resource: version
params:
file: version/version
groups:
- name: main
jobs:
- set-pipeline
- setup-ci-bucket
- unit-tests
- build
- smoke-test
- system-test
- system-test-update
- system-test-rds-ca
- system-test-rds-encryption
- system-test-m5
- system-test-letsencrypt
- system-test-options-and-destroy
- system-test-zone-delegation
- system-test-zone-delegation-gcp
- system-test-options-and-destroy-gcp
- system-test-letsencrypt-gcp
- smoke-test-gcp
- system-test-gcp
- system-test-update-gcp
- release-notification
- auto
- major
- minor
- patch
- update-homebrew-formula
- name: cleanup
jobs:
- cleanup-aws
- cleanup-gcp
- name: aws
jobs:
- smoke-test
- system-test
- system-test-update
- system-test-rds-ca
- system-test-rds-encryption
- system-test-m5
- system-test-letsencrypt
- system-test-options-and-destroy
- system-test-zone-delegation
- cleanup-aws
- name: gcp
jobs:
- system-test-zone-delegation-gcp
- system-test-options-and-destroy-gcp
- system-test-letsencrypt-gcp
- smoke-test-gcp
- system-test-gcp
- system-test-update-gcp
- cleanup-gcp
resource_types:
- name: slack-notification
type: docker-image
source:
repository: cfcommunity/slack-notification-resource
tag: latest
- name: build-metadata
type: docker-image
source:
repository: mastertinner/build-metadata-resource
- name: bosh-io-release
type: docker-image
source:
repository: engineerbetter/bosh-io-release-resource
- name: terraform
type: docker-image
source:
repository: ljfranklin/terraform-resource
tag: "1.3.6"
- name: github-release
type: registry-image
source:
repository: concourse/github-release-resource
tag: "1.5.5"
resources:
- name: ci-bucket
type: terraform
icon: terraform
source:
backend_type: s3
backend_config:
bucket: ((bucket-name))
key: ci/tf/master.tfstate
region: eu-west-1
access_key: ((concourse_ci_s3_access_key))
secret_key: ((concourse_ci_s3_secret_key))
vars:
bucket-name: ((bucket-name))
region: eu-west-1
env:
AWS_ACCESS_KEY_ID: ((concourse_ci_s3_access_key))
AWS_SECRET_ACCESS_KEY: ((concourse_ci_s3_secret_key))
- name: control-tower
type: git
icon: github
source:
uri: [email protected]:EngineerBetter/control-tower.git
branch: ((branch))
private_key: ((github_private_key))
ignore_paths:
- README.md
- docs/
- name: homebrew-tap
type: git
icon: github
source:
uri: [email protected]:EngineerBetter/homebrew-tap.git
branch: master
private_key: ((github_private_key_homebrew))
- name: control-tower-ops
type: git
icon: github
source:
uri: [email protected]:EngineerBetter/control-tower-ops.git
branch: master
tag_filter: 0.*.*
private_key: ((github_private_key))
ignore_paths:
- README.md
- name: pcf-ops
type: registry-image
icon: docker
source:
repository: engineerbetter/pcf-ops
username: ((dockerhub_user))
password: ((dockerhub_password))
- name: version
type: semver
icon: numeric
source:
initial_version: 0.0.0
driver: s3
bucket: control-tower-ci-artifacts
key: version
access_key_id: ((concourse_ci_s3_access_key))
secret_access_key: ((concourse_ci_s3_secret_key))
region_name: eu-west-1
- name: binary-linux-amd64
type: s3
icon: file-move
source:
bucket: control-tower-ci-artifacts
versioned_file: ((binary-name))-linux-amd64
access_key_id: ((concourse_ci_s3_access_key))
secret_access_key: ((concourse_ci_s3_secret_key))
region_name: eu-west-1
- name: binary-darwin-amd64
type: s3
icon: file-move
source:
bucket: control-tower-ci-artifacts
versioned_file: ((binary-name))-darwin-amd64
access_key_id: ((concourse_ci_s3_access_key))
secret_access_key: ((concourse_ci_s3_secret_key))
region_name: eu-west-1
- name: binary-darwin-arm64
type: s3
icon: file-move
source:
bucket: control-tower-ci-artifacts
versioned_file: ((binary-name))-darwin-arm64
access_key_id: ((concourse_ci_s3_access_key))
secret_access_key: ((concourse_ci_s3_secret_key))
region_name: eu-west-1
- name: release-versions
type: s3
icon: file-move
source:
bucket: control-tower-ci-artifacts
versioned_file: release-versions.json
access_key_id: ((concourse_ci_s3_access_key))
secret_access_key: ((concourse_ci_s3_secret_key))
region_name: eu-west-1
- name: release
type: github-release
icon: ferry
source:
user: engineerbetter
repository: control-tower
access_token: ((github_access_token))
- name: release-drafts
type: github-release
icon: ferry
source:
user: engineerbetter
repository: control-tower
access_token: ((github_access_token))
drafts: true
- name: slack-alert
type: slack-notification
icon: slack
source:
url: ((slack_webhook))
- name: once-daily
type: time
icon: clock
source: {interval: 24h}
- name: build-metadata
type: build-metadata
icon: file
jobs:
- name: set-pipeline
serial: true
plan:
- get: control-tower
trigger: true
- set_pipeline: ((pipeline-name))
file: control-tower/ci/pipeline.yml
vars:
binary-name: ((binary-name))
branch: ((branch))
bucket-name: ((bucket-name))
pipeline-name: ((pipeline-name))
- name: setup-ci-bucket
serial: true
plan:
- get: control-tower
passed: [set-pipeline]
trigger: true
- put: ci-bucket
params:
terraform_source: control-tower/ci/tf
env_name: ((branch))
- name: unit-tests
plan:
- in_parallel:
- get: pcf-ops
- get: control-tower
trigger: true
passed: [set-pipeline]
- get: control-tower-ops
trigger: true
- task: lint
image: pcf-ops
file: control-tower/ci/tasks/lint.yml
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *lint* failure!
- task: unit-test
image: pcf-ops
file: control-tower/ci/tasks/unit-test.yml
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *unit-test* failure!
- name: build
plan:
- in_parallel:
- get: pcf-ops
passed: [unit-tests]
- get: control-tower
trigger: true
passed: [unit-tests, setup-ci-bucket]
- get: control-tower-ops
trigger: true
passed: [unit-tests]
- in_parallel:
- do:
- task: build-linux-amd64
image: pcf-ops
output_mapping:
build: build-linux-amd64
params:
GOOS: linux
GOARCH: amd64
OUTPUT_FILE: ((binary-name))-linux-amd64
file: control-tower/ci/tasks/build.yml
- put: binary-linux-amd64
inputs:
- build-linux-amd64
params:
file: build-linux-amd64/((binary-name))-linux-amd64
- do:
- task: build-darwin-amd64
image: pcf-ops
output_mapping:
build: build-darwin-amd64
params:
GOOS: darwin
GOARCH: amd64
OUTPUT_FILE: ((binary-name))-darwin-amd64
file: control-tower/ci/tasks/build.yml
- put: binary-darwin-amd64
inputs:
- build-darwin-amd64
params:
file: build-darwin-amd64/((binary-name))-darwin-amd64
- do:
- task: build-darwin-arm64
image: pcf-ops
output_mapping:
build: build-darwin-arm64
params:
GOOS: darwin
GOARCH: arm64
OUTPUT_FILE: ((binary-name))-darwin-arm64
file: control-tower/ci/tasks/build.yml
- put: binary-darwin-arm64
inputs:
- build-darwin-arm64
params:
file: build-darwin-arm64/((binary-name))-darwin-arm64
- name: smoke-test
serial_groups:
- smoke-test
serial: true
plan:
- in_parallel: &smoke-test-gets
- get: binary-linux-amd64
trigger: true
passed: [build]
- get: binary-darwin-amd64
trigger: true
passed: [build]
- get: binary-darwin-arm64
trigger: true
passed: [build]
- get: control-tower
trigger: true
passed: [build]
- get: control-tower-ops
trigger: true
passed: [build]
- get: pcf-ops
passed: [build]
- task: smoke-test
file: control-tower/ci/tasks/smoke-test.yml
params:
AWS_ACCESS_KEY_ID: ((control_tower_test_access_key_id))
AWS_SECRET_ACCESS_KEY: ((control_tower_test_secret_key))
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
SKIP_TEARDOWN: true
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *smoke-test* failure!
- name: smoke-test-gcp
serial_groups:
- smoke-test-gcp
serial: true
plan:
- in_parallel: *smoke-test-gets
- task: smoke-test
file: control-tower/ci/tasks/smoke-test.yml
params:
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
GOOGLE_APPLICATION_CREDENTIALS_CONTENTS: ((system_test_google_application_credentials))
IAAS: GCP
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *smoke-test-gcp* failure!
- name: system-test
serial_groups:
- system-test
serial: true
plan:
- in_parallel: &system-test-gets
- get: binary-linux-amd64
trigger: true
passed: [smoke-test]
- get: binary-darwin-amd64
trigger: true
passed: [smoke-test]
- get: binary-darwin-arm64
trigger: true
passed: [smoke-test]
- get: control-tower
trigger: true
passed: [smoke-test]
- get: control-tower-ops
trigger: true
passed: [smoke-test]
- get: pcf-ops
passed: [smoke-test]
- task: system-test
file: control-tower/ci/tasks/system-test.yml
params:
AWS_ACCESS_KEY_ID: ((control_tower_test_access_key_id))
AWS_SECRET_ACCESS_KEY: ((control_tower_test_secret_key))
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
IAAS: AWS
SKIP_TEARDOWN: true
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test* failure!
- name: system-test-gcp
serial_groups:
- system-test-gcp
serial: true
plan:
- in_parallel: &system-test-gets-gcp
- get: binary-linux-amd64
trigger: true
passed: [smoke-test-gcp]
- get: binary-darwin-amd64
trigger: true
passed: [smoke-test-gcp]
- get: binary-darwin-arm64
trigger: true
passed: [smoke-test-gcp]
- get: control-tower
trigger: true
passed: [smoke-test-gcp]
- get: control-tower-ops
trigger: true
passed: [smoke-test-gcp]
- get: pcf-ops
passed: [smoke-test-gcp]
- task: system-test
file: control-tower/ci/tasks/system-test.yml
params:
GOOGLE_APPLICATION_CREDENTIALS_CONTENTS: ((system_test_google_application_credentials))
IAAS: GCP
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-gcp* failure!
- name: system-test-rds-ca
serial_groups:
- system-test-rds-ca
serial: true
plan:
- in_parallel: *system-test-gets
- task: run-system-test-rds-ca
file: control-tower/ci/tasks/system-test-rds-ca.yml
params:
AWS_ACCESS_KEY_ID: ((control_tower_test_access_key_id))
AWS_SECRET_ACCESS_KEY: ((control_tower_test_secret_key))
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
IAAS: AWS
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-rds-ca* failure!
- name: system-test-rds-encryption
serial_groups:
- system-test-rds-encryption
serial: true
plan:
- in_parallel: *system-test-gets
- task: run-system-test-rds-encryption
file: control-tower/ci/tasks/system-test-rds-encryption.yml
params:
AWS_ACCESS_KEY_ID: ((control_tower_test_access_key_id))
AWS_SECRET_ACCESS_KEY: ((control_tower_test_secret_key))
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
IAAS: AWS
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-rds-encryption* failure!
- name: system-test-update
serial_groups:
- system-test-update
serial: true
plan:
- in_parallel: *system-test-gets
- get: release
- task: run-system-test-update
file: control-tower/ci/tasks/system-test-update.yml
params:
AWS_ACCESS_KEY_ID: ((control_tower_test_access_key_id))
AWS_SECRET_ACCESS_KEY: ((control_tower_test_secret_key))
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
IAAS: AWS
SKIP_TEARDOWN: true
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-update* failure!
- name: system-test-update-gcp
serial_groups:
- system-test-update-gcp
serial: true
plan:
- in_parallel: *system-test-gets-gcp
- get: release
- task: run-system-test-update
file: control-tower/ci/tasks/system-test-update.yml
params:
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
GOOGLE_APPLICATION_CREDENTIALS_CONTENTS: ((system_test_google_application_credentials))
IAAS: GCP
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-update-gcp* failure!
- name: system-test-m5
serial_groups:
- system-test-m5
serial: true
plan:
- in_parallel: *system-test-gets
- task: system-test-m5
file: control-tower/ci/tasks/system-test-m5.yml
params:
AWS_ACCESS_KEY_ID: ((control_tower_test_access_key_id))
AWS_SECRET_ACCESS_KEY: ((control_tower_test_secret_key))
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-m5* failure!
- name: system-test-letsencrypt
serial_groups:
- system-test-letencrypt
serial: true
plan:
- in_parallel: *system-test-gets
- task: system-test-letsencrypt
file: control-tower/ci/tasks/system-test-letsencrypt.yml
params:
IAAS: AWS
AWS_ACCESS_KEY_ID: ((control_tower_test_access_key_id))
AWS_SECRET_ACCESS_KEY: ((control_tower_test_secret_key))
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-letsencrypt* failure!
- name: system-test-letsencrypt-gcp
serial_groups:
- system-test-letencrypt-gcp
serial: true
plan:
- in_parallel: *system-test-gets-gcp
- task: system-test-letsencrypt
file: control-tower/ci/tasks/system-test-letsencrypt.yml
params:
IAAS: GCP
GOOGLE_APPLICATION_CREDENTIALS_CONTENTS: ((system_test_google_application_credentials))
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-letsencrypt-gcp* failure!
- name: system-test-options-and-destroy
serial_groups:
- system-test-options-and-destroy
serial: true
plan:
- in_parallel: *system-test-gets
- task: system-test-options-and-destroy
file: control-tower/ci/tasks/system-test-options-and-destroy.yml
params:
IAAS: AWS
AWS_ACCESS_KEY_ID: ((control_tower_test_access_key_id))
AWS_SECRET_ACCESS_KEY: ((control_tower_test_secret_key))
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
EB_WILDCARD_CERT: ((eb_wildcard.certificate))
EB_WILDCARD_KEY: ((eb_wildcard.private_key))
BITBUCKET_AUTH_CLIENT_ID: placeholder
BITBUCKET_AUTH_CLIENT_SECRET: placeholder
GITHUB_AUTH_CLIENT_ID: ((github_auth_client_id))
GITHUB_AUTH_CLIENT_SECRET: ((github_auth_client_secret))
MICROSOFT_AUTH_CLIENT_ID: placeholder
MICROSOFT_AUTH_CLIENT_SECRET: placeholder
MICROSOFT_AUTH_TENANT: placeholder
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-options-and-destroy* failure!
- name: system-test-options-and-destroy-gcp
serial_groups:
- system-test-options-and-destroy-gcp
serial: true
plan:
- in_parallel: *system-test-gets-gcp
- task: system-test-options-and-destroy
file: control-tower/ci/tasks/system-test-options-and-destroy.yml
params:
GOOGLE_APPLICATION_CREDENTIALS_CONTENTS: ((system_test_google_application_credentials))
IAAS: GCP
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
EB_WILDCARD_CERT: ((eb_wildcard.certificate))
EB_WILDCARD_KEY: ((eb_wildcard.private_key))
BITBUCKET_AUTH_CLIENT_ID: placeholder
BITBUCKET_AUTH_CLIENT_SECRET: placeholder
GITHUB_AUTH_CLIENT_ID: ((github_auth_client_id_gcp))
GITHUB_AUTH_CLIENT_SECRET: ((github_auth_client_secret_gcp))
MICROSOFT_AUTH_CLIENT_ID: placeholder
MICROSOFT_AUTH_CLIENT_SECRET: placeholder
MICROSOFT_AUTH_TENANT: placeholder
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-options-and-destroy-gcp* failure!
- name: system-test-zone-delegation
serial_groups:
- system-test-zone-delegation
serial: true
plan:
- in_parallel: *system-test-gets
- task: system-test-zone-delegation
file: control-tower/ci/tasks/system-test-zone-delegation.yml
params:
IAAS: AWS
AWS_ACCESS_KEY_ID: ((control_tower_test_access_key_id))
AWS_SECRET_ACCESS_KEY: ((control_tower_test_secret_key))
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
EB_WILDCARD_CERT: ((eb_wildcard.certificate))
EB_WILDCARD_KEY: ((eb_wildcard.private_key))
GITHUB_AUTH_CLIENT_ID: ((github_auth_client_id))
GITHUB_AUTH_CLIENT_SECRET: ((github_auth_client_secret))
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-zone-delegation* failure!
- name: system-test-zone-delegation-gcp
serial_groups:
- system-test-zone-delegation-gcp
serial: true
plan:
- in_parallel: *system-test-gets-gcp
- task: system-test-zone-delegation
file: control-tower/ci/tasks/system-test-zone-delegation.yml
params:
GOOGLE_APPLICATION_CREDENTIALS_CONTENTS: ((system_test_google_application_credentials))
IAAS: GCP
BINARY_PATH: binary-linux-amd64/((binary-name))-linux-amd64
EB_WILDCARD_CERT: ((eb_wildcard.certificate))
EB_WILDCARD_KEY: ((eb_wildcard.private_key))
GITHUB_AUTH_CLIENT_ID: ((github_auth_client_id_gcp))
GITHUB_AUTH_CLIENT_SECRET: ((github_auth_client_secret_gcp))
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower *((branch))* branch *system-test-zone-delegation-gcp* failure!
- name: release-notification
serial: true
plan:
- in_parallel:
- get: pcf-ops
passed: &system-tests
- system-test
- system-test-update
- system-test-rds-ca
- system-test-m5
- system-test-letsencrypt
- system-test-options-and-destroy
- system-test-zone-delegation
- system-test-gcp
- system-test-options-and-destroy-gcp
- system-test-letsencrypt-gcp
- system-test-update-gcp
- system-test-zone-delegation-gcp
- get: control-tower
trigger: true
passed: *system-tests
- get: control-tower-ops
trigger: true
passed: *system-tests
- get: release-versions
- *generate-versions-file
- task: write-release-notification
image: pcf-ops
file: control-tower/ci/tasks/write-release-notification.yml
input_mapping:
old-versions: release-versions
new-versions: versions-file
- put: slack-alert
params:
channel: "#control-tower-integration"
text_file: slack-message/text
- name: auto
serial: true
plan:
- in_parallel:
- get: control-tower-ops
passed: [release-notification]
trigger: true
- get: version
params:
bump: patch
- *create-release-files
- *publish-release
- name: patch
serial: true
plan:
- in_parallel:
- get: version
params:
bump: patch
- get: control-tower-ops
passed: [release-notification]
- *create-release-files
- *publish-draft-release
- name: minor
serial: true
plan:
- in_parallel:
- get: version
params:
bump: minor
- get: control-tower-ops
passed: [release-notification]
- *create-release-files
- *publish-draft-release
- name: major
serial: true
plan:
- in_parallel:
- get: version
params:
bump: major
- get: control-tower-ops
passed: [release-notification]
- *create-release-files
- *publish-draft-release
- name: update-homebrew-formula
serial: true
plan:
- in_parallel:
- get: release
trigger: true
- get: homebrew-tap
- get: control-tower
- get: pcf-ops
- task: update-homebrew-formula
image: pcf-ops
file: control-tower/ci/tasks/update-homebrew-formula.yml
- put: homebrew-tap
params:
repository: homebrew-tap-updated
- name: cleanup-aws
serial: true
serial_groups:
- smoke-test
- system-test
- system-test-update
- system-test-rds-ca
- system-test-m5
- system-test-letsencrypt
- system-test-options-and-destroy
- system-test-zone-delegation
plan:
- in_parallel:
- get: control-tower
- get: once-daily
trigger: true
- get: binary-linux-amd64
- task: cleanup
file: control-tower/ci/tasks/cleanup-tests.yml
params:
AWS_ACCESS_KEY_ID: ((control_tower_test_access_key_id))
AWS_SECRET_ACCESS_KEY: ((control_tower_test_secret_key))
IAAS: AWS
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower AWS cleanup failure!
- name: cleanup-gcp
serial: true
serial_groups:
- smoke-test-gcp
- system-test-gcp
- system-test-update-gcp
- system-test-letsencrypt-gcp
- system-test-options-and-destroy-gcp
- system-test-zone-delegation-gcp
plan:
- in_parallel:
- get: control-tower
- get: once-daily
trigger: true
- get: binary-linux-amd64
- get: pcf-ops
- do:
- task: cleanup
file: control-tower/ci/tasks/cleanup-tests.yml
params:
GOOGLE_APPLICATION_CREDENTIALS_CONTENTS: ((system_test_google_application_credentials))
IAAS: GCP
- task: cleanup-orphaned-disks
file: control-tower/ci/tasks/cleanup-orphaned-disks.yml
image: pcf-ops
params:
GOOGLE_APPLICATION_CREDENTIALS_CONTENTS: ((system_test_google_application_credentials))
on_failure:
put: slack-alert
params:
channel: "#control-tower-integration"
text: |
Control-Tower GCP cleanup failure!