This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
smb-volume-release.yml
1264 lines (1191 loc) · 40.4 KB
/
smb-volume-release.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
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
# To set the pipeline, run:
# fly -t cryo set-pipeline -p smb-volume-release -c smb-volume-release.yml
#
# ************************************
# Secrets we need to run this pipeline
# ************************************
cerberus_secrets:
#! gcr_viewer_key was needed on 2024-03-24 for getting concourse container images from our GCR instance. Generated by using personal creds to log into the mapbu-cryogenics google cloud project.
- &gcr_viewer_key ((gcp-tas-runtime-service-account/config-json))
# CloudGate credentials for the service user assuming a role in CF Diego Persistence CI
- &upload_role_arn ((aws-s3-107350105730-smb-volume-services-s3/assume-role))
- &upload_role_id ((aws-s3-107350105730-smb-volume-services-s3/access-key-id))
- &upload_role_secret ((aws-s3-107350105730-smb-volume-services-s3/secret-access-key))
#! GitHub SSH Key is used to push git commits and accessing repositories. Added 2024-02-19
- &github_access_token ((github-tas-runtime-bot/access-token))
- &github_ssh_key ((github-tas-runtime-bot/private-key))
#! GitHub email and username are used to sign the commits and PRs for go module auto bumps. Added 2024-02-19
- &github_user App Platform Runtime Working Group CI Bot
- &github_email [email protected]
- &pats_password ((azure-smb-volume-access-volume-services/password))
- &pats_username ((azure-smb-volume-access-volume-services/username))
- &cats_create_config '{\"share\": \"((azure-smb-volume-access-volume-services/remote_path))\", \"username\": \"((azure-smb-volume-access-volume-services/username))\", \"password\": \"((azure-smb-volume-access-volume-services/password))\"}' # yamllint disable-line rule:line-length
- &pats_create_config '{\"share\":\"((azure-smb-volume-access-volume-services/remote_path))\"}'
- &pats_bind_config '["{\"username\":\"((azure-smb-volume-access-volume-services/username))\",\"password\":\"((azure-smb-volume-access-volume-services/password))\", \"domain\": \"foo\"}", "{\"username\":\"((azure-smb-volume-access-volume-services/username))\",\"password\":\"((azure-smb-volume-access-volume-services/password))\", \"domain\": \"foo\", \"version\": \"3.0\"}", "{\"username\":\"((azure-smb-volume-access-volume-services/username))\",\"password\":\"((azure-smb-volume-access-volume-services/password))\", \"mount\": \"/var/vcap/data/foo\", \"domain\": \"foo\"}"]' # yamllint disable-line rule:line-length
#! as of 23/04/2024 gchat webhook is used to send us ci status messages. It was created in gchat space settings after logging in with personal creds
- &gchat_webhook ((concourse-google-chat-webhook/concourse-webhook))
#! shepherd_account_key was needed on 2023-09-28 to claim shepherd environments. It was created using `shepherd create service-account` after logging in with WS1.
- &shepherd_account_key ((shepherd-service-account-key))
# **************
# End of secrets
# **************
number_of_claim_env_retries: &number_of_claim_env_retries 5
groups:
- name: test
jobs:
- smb-volume-release-job-tests
- cats
- drats
- pats
- deploy-cf
- release-env
- merge-pr
- check-for-cves
- name: bump
jobs:
- bump-golang
- update-go-directive-for-smbdriver-for-gomod-directive-updates
- update-go-directive-for-smbbroker-for-gomod-directive-updates
- &bump-blob-autoconf-job-name bump-blob-autoconf
- &bump-blob-automake-job-name bump-blob-automake
- &bump-blob-libtool-job-name bump-blob-libtool
- &bump-blob-cifs-utils-job-name bump-blob-cifs-utils
- &bump-blob-keyutils-job-name bump-blob-keyutils
- &bump-blob-talloc-job-name bump-blob-talloc
- name: release
jobs:
- check-for-changes
- shipit-smb
- manual-bump-smb-patch
- manual-bump-smb-minor
- manual-bump-smb-major
resources:
- name: git-concourse-cve-scan
type: git
source:
uri: [email protected]:pivotal/concourse-cve-scan.git
branch: feat/add-vex-consideration
private_key: *github_ssh_key
- name: git-tas-vex
type: git
source:
uri: [email protected]:pivotal/tas-vex.git
private_key: *github_ssh_key
branch: main
- name: github-release-tas-cve
type: github-release
source:
access_token: *github_access_token
repository: tas-cve
user: pivotal
- name: gchat-cryo-notification
type: google-chat-notify-resource
source:
url: *gchat_webhook
- name: every-week
type: time
source:
interval: 168h # 24h*7days
- name: stemcell
type: bosh-io-stemcell
source:
name: bosh-google-kvm-ubuntu-jammy-go_agent
- name: cf-deployment-env
icon: pool
type: shepherd
source:
url: https://v2.shepherd.run
service-account-key: *shepherd_account_key
compatibility-mode: environments-app
lease:
namespace: cryogenics
pool:
namespace: official
name: cfd
- name: persi-ci
type: git
source:
uri: https://github.com/cloudfoundry/persi-ci
branch: master
- name: smb-volume-release
type: pull-request
source:
base_branch: master
access_token: *github_access_token
repository: cloudfoundry/smb-volume-release
disable_forks: true
- name: smb-volume-release-master
type: git
icon: github
source:
branch: master
private_key: *github_ssh_key
uri: [email protected]:cloudfoundry/smb-volume-release.git
- name: smb-volume-release-master-write
type: git
icon: github
source:
private_key: *github_ssh_key
uri: [email protected]:cloudfoundry/smb-volume-release.git
commit_filter:
exclude:
- ;resource comment; This resource is used exclusively for pushing new changes
- name: smb-volume-release-bump-golang-master
type: git
icon: github
source:
branch: master
private_key: *github_ssh_key
uri: [email protected]:cloudfoundry/smb-volume-release.git
disable_ci_skip: true
- name: smb-volume-release-master-production-files-only
type: git
source:
branch: master
private_key: *github_ssh_key
uri: [email protected]:cloudfoundry/smb-volume-release.git
paths:
- .final_builds
- LICENSE
- NOTICE
- config
- jobs
- packages
- releases
- src
- name: smb-volume-version
type: semver
source:
access_key_id: *upload_role_id
bucket: smb-volume-release-versions
initial_version: 3.0.2
key: current-version
region_name: us-east-1
secret_access_key: *upload_role_secret
assume_role_arn: *upload_role_arn
- name: github-release-smb
type: github-release
source:
user: cloudfoundry
repository: smb-volume-release
drafts: true
access_token: *github_access_token
- name: smb-volume-release-concourse-tasks
type: git
source:
uri: https://github.com/cloudfoundry/smb-volume-release.git
branch: master
- name: cf-deployment
type: git
source:
branch: develop
uri: https://github.com/cloudfoundry/cf-deployment.git
- name: cf-deployment-concourse-tasks
type: git
source:
branch: main
uri: https://github.com/cloudfoundry/cf-deployment-concourse-tasks.git
- name: cf-volume-services-acceptance-tests
type: git
source:
uri: https://github.com/cloudfoundry/cf-volume-services-acceptance-tests.git
branch: main
- name: cf-acceptance-tests
type: git
source:
branch: release-candidate
uri: https://github.com/cloudfoundry/cf-acceptance-tests.git
- name: bbr-binary-release
type: github-release
source:
owner: cloudfoundry-incubator
repository: bosh-backup-and-restore
access_token: *github_access_token
- name: disaster-recovery-acceptance-tests
type: git
source:
uri: https://github.com/cloudfoundry-incubator/disaster-recovery-acceptance-tests.git
branch: main
- name: golang-release
type: git
icon: tag
source:
uri: https://github.com/bosh-packages/golang-release.git
tag_filter: v*
- name: cryogenics-concourse-tasks
type: git
icon: github
source:
uri: [email protected]:pivotal/cryogenics-concourse-tasks.git
private_key: ((tas-runtime-bot-cryo-deploy-key-for-pivotal-org/private_key))
branch: main
- name: smbdriver
type: git
icon: github
source:
uri: [email protected]:cloudfoundry/smbdriver.git
branch: master
private_key: *github_ssh_key
- name: smbdriver-write
type: git
icon: github
source:
uri: [email protected]:cloudfoundry/smbdriver.git
private_key: *github_ssh_key
commit_filter:
exclude:
- ;resource comment; This resource is used exclusively for pushing new changes
- name: smbbroker
type: git
icon: github
source:
uri: [email protected]:cloudfoundry/smbbroker.git
branch: master
private_key: *github_ssh_key
- name: smbbroker-write
type: git
icon: github
source:
uri: [email protected]:cloudfoundry/smbbroker.git
private_key: *github_ssh_key
commit_filter:
exclude:
- ;resource comment; This resource is used exclusively for pushing new changes
- name: image-cryogenics-essentials
type: registry-image
icon: docker
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/essentials/cryo-essentials
username: _json_key
password: *gcr_viewer_key
- name: cifs-utils-latest
type: git
icon: github
source:
branch: master
uri: git://git.samba.org/cifs-utils.git
tag_regex: ^cifs-utils-([0-9]*\.[0-9]*)
- name: keyutils-latest
type: git
icon: github
source:
uri: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git
tag_regex: ^v[0-9]*\.[0-9]*\.[0-9]*
- name: talloc-latest
type: uscan
source:
watchfile: |
version=4
https://www.samba.org/ftp/talloc/talloc-([0-9]+\.[0-9]+\.[0-9]+).tar.gz
- name: autoconf-latest
type: ftp
icon: download-network-outline
source:
url: 'ftp://ftp.gnu.org/gnu/autoconf/'
version_regex: '^autoconf-(?P<version>[0-9][0-9.]+[0-9]).tar.gz$'
- name: automake-latest
type: ftp
icon: download-network-outline
source:
url: 'ftp://ftp.gnu.org/gnu/automake/'
version_regex: '^automake-(?P<version>[0-9][0-9.]+[0-9]).tar.xz$'
- name: libtool-latest
type: ftp
icon: download-network-outline
source:
url: 'ftp://ftp.gnu.org/gnu/libtool/'
version_regex: '^libtool-(?P<version>[0-9][0-9.]+[0-9]).tar.xz$'
resource_types:
- name: google-chat-notify-resource
type: registry-image
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/dockerhub-proxy-cache/springio/google-chat-notify-resource
username: _json_key
password: *gcr_viewer_key
tag: 0.0.1-SNAPSHOT
- name: uscan
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/concourse-resources/concourse-uscan-resource
username: _json_key
password: *gcr_viewer_key
type: registry-image
- name: semver
type: registry-image
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/dockerhub-proxy-cache/concourse/semver-resource
username: _json_key
password: *gcr_viewer_key
tag: "1.6"
- name: shepherd
source:
tag: v1
repository: us-west2-docker.pkg.dev/shepherd-268822/shepherd2/concourse-resource
username: _json_key
password: *gcr_viewer_key
type: registry-image
- name: pull-request
type: registry-image
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/concourse-resources/pr-queue-resource
username: _json_key
password: *gcr_viewer_key
- name: ftp
type: registry-image
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/concourse-resources/concourse-ftp-resource
username: _json_key
password: *gcr_viewer_key
jobs:
- name: check-for-cves
plan:
- in_parallel:
- get: git-concourse-cve-scan
- get: github-release-tas-cve
- get: smb-volume-release
trigger: true
- get: git-tas-vex
- task: run-scan
file: git-concourse-cve-scan/tasks/scan/scan.yml
input_mapping:
concourse-cve-scan: git-concourse-cve-scan
tas-cve: github-release-tas-cve
target-bosh-release: smb-volume-release
tas-vex: git-tas-vex
params:
DRY_RUN: true
GRYPE_FAILURE_LEVEL: negligible #! Can be any of: none | negligible | low | medium | high | critical
RELEASE_NAME: smb-volume
RELEASE_VERSION: pre-release-cve-scan
- name: *bump-blob-cifs-utils-job-name
serial: true
plan:
- in_parallel:
- get: cifs-utils-latest
trigger: true
- get: smb-volume-release-master
- get: cryogenics-concourse-tasks
- get: image-cryogenics-essentials
- task: create-blob-tarball-and-version
image: image-cryogenics-essentials
config:
platform: linux
run:
path: sh
args:
- -exc
- |
cat cifs-utils-latest/.git/ref | sed 's/cifs-utils-//g' > distributed-package/version
tar -cjf distributed-package/keyutils-$(cat distributed-package/version).tar.bz -C cifs-utils-latest .
inputs:
- name: cifs-utils-latest
outputs:
- name: distributed-package
- load_var: cifs-utils-version
file: distributed-package/version
- task: bump-cifs-utils
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-blob/task.yml
input_mapping:
bosh-release: smb-volume-release-master
params:
AWS_ACCESS_KEY_ID: *upload_role_id
AWS_SECRET_ACCESS_KEY: *upload_role_secret
AWS_ROLE_ARN: *upload_role_arn
GIT_USERNAME: *github_user
GIT_EMAIL: *github_email
GIT_BRANCH: &bump-cifs-utils-branch bump-cifs-utils-to-((.:cifs-utils-version))
BLOB_NAME: cifs-utils
BLOB_EXTENSION: tar.bz2
- put: smb-volume-release-master-write
params:
repository: bosh-release-updated
branch: *bump-cifs-utils-branch
- try:
task: create-cifs-utils-update-pr
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
GH_TOKEN: *github_access_token
BASE: master
BRANCH: *bump-cifs-utils-branch
LABELS: dependencies
TITLE: Update cifs-utils tarball blob to ((.:cifs-utils-version))
MESSAGE: "This is an automatically generated Pull Request from the Cryogenics CI Bot.\
\nI have detected a new version of [cifs-utils](https://git.samba.org/?p=cifs-utils.git;a=summary) and \
automatically bumped\nthis package to benefit from the latest changes.\
\nIf this does not look right, please reach out to the \
mapbu-cryogenics team.\n"
input_mapping:
source-repo: smb-volume-release-master-write
- name: *bump-blob-keyutils-job-name
serial: true
plan:
- in_parallel:
- get: keyutils-latest
trigger: true
- get: image-cryogenics-essentials
- get: smb-volume-release-master
- get: cryogenics-concourse-tasks
- task: create-blob-tarball-and-version
image: image-cryogenics-essentials
config:
platform: linux
run:
path: sh
args:
- -exc
- |
cat keyutils-latest/.git/ref | sed 's/v//g' > distributed-package/version
tar -czf distributed-package/keyutils-$(cat distributed-package/version).tar.gz -C keyutils-latest .
inputs:
- name: keyutils-latest
outputs:
- name: distributed-package
- load_var: keyutils-version
file: distributed-package/version
- task: bump-keyutils
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-blob/task.yml
input_mapping:
bosh-release: smb-volume-release-master
params:
AWS_ACCESS_KEY_ID: *upload_role_id
AWS_SECRET_ACCESS_KEY: *upload_role_secret
AWS_ROLE_ARN: *upload_role_arn
GIT_USERNAME: *github_user
GIT_EMAIL: *github_email
GIT_BRANCH: &bump-keyutils-branch bump-keyutils-to-((.:keyutils-version))
BLOB_NAME: keyutils
BLOB_EXTENSION: tar.gz
- put: smb-volume-release-master-write
params:
repository: bosh-release-updated
branch: *bump-keyutils-branch
- try:
task: create-keyutils-update-pr
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
GH_TOKEN: *github_access_token
BASE: master
BRANCH: *bump-keyutils-branch
LABELS: dependencies
TITLE: Update keyutils tarball blob to ((.:keyutils-version))
MESSAGE: "This is an automatically generated Pull Request from the Cryogenics CI Bot.\
\nI have detected a new version of [keyutils](https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git) and \
automatically bumped\nthis package to benefit from the latest changes.\
\nIf this does not look right, please reach out to the \
mapbu-cryogenics team.\n"
input_mapping:
source-repo: smb-volume-release-master-write
- name: *bump-blob-autoconf-job-name
serial: true
plan:
- in_parallel:
- get: autoconf-latest
trigger: true
- get: image-cryogenics-essentials
- get: smb-volume-release-master
- get: cryogenics-concourse-tasks
- load_var: autoconf-version
file: autoconf-latest/version
- task: bump-autoconf
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-blob/task.yml
input_mapping:
distributed-package: autoconf-latest
bosh-release: smb-volume-release-master
params:
AWS_ACCESS_KEY_ID: *upload_role_id
AWS_SECRET_ACCESS_KEY: *upload_role_secret
AWS_ROLE_ARN: *upload_role_arn
GIT_USERNAME: *github_user
GIT_EMAIL: *github_email
GIT_BRANCH: &bump-autoconf-branch bump-autoconf-to-((.:autoconf-version))
BLOB_NAME: autoconf
BLOB_EXTENSION: tar.gz
- put: smb-volume-release-master-write
params:
repository: bosh-release-updated
branch: *bump-autoconf-branch
- try:
task: create-autoconf-update-pr
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
GH_TOKEN: *github_access_token
BASE: master
BRANCH: *bump-autoconf-branch
LABELS: dependencies
TITLE: Update autoconf tarball blob to ((.:autoconf-version))
MESSAGE: "This is an automatically generated Pull Request from the Cryogenics CI Bot.\
\nI have detected a new version of [autoconf](https://ftp.gnu.org/gnu/autoconf/) and \
automatically bumped\nthis package to benefit from the latest changes.\
\nIf this does not look right, please reach out to the \
mapbu-cryogenics team.\n"
input_mapping:
source-repo: smb-volume-release-master-write
- name: *bump-blob-automake-job-name
serial: true
plan:
- in_parallel:
- get: automake-latest
trigger: true
- get: image-cryogenics-essentials
- get: smb-volume-release-master
- get: cryogenics-concourse-tasks
- load_var: automake-version
file: automake-latest/version
- task: bump-automake
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-blob/task.yml
input_mapping:
distributed-package: automake-latest
bosh-release: smb-volume-release-master
params:
AWS_ACCESS_KEY_ID: *upload_role_id
AWS_SECRET_ACCESS_KEY: *upload_role_secret
AWS_ROLE_ARN: *upload_role_arn
GIT_USERNAME: *github_user
GIT_EMAIL: *github_email
GIT_BRANCH: &bump-automake-branch bump-automake-to-((.:automake-version))
BLOB_NAME: automake
- put: smb-volume-release-master-write
params:
repository: bosh-release-updated
branch: *bump-automake-branch
- try:
task: create-automake-update-pr
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
GH_TOKEN: *github_access_token
BASE: master
BRANCH: *bump-automake-branch
LABELS: dependencies
TITLE: Update automake tarball blob to ((.:automake-version))
MESSAGE: "This is an automatically generated Pull Request from the Cryogenics CI Bot.\
\nI have detected a new version of [automake](https://ftp.gnu.org/gnu/automake/) and \
automatically bumped\nthis package to benefit from the latest changes.\
\nIf this does not look right, please reach out to the \
mapbu-cryogenics team.\n"
input_mapping:
source-repo: smb-volume-release-master-write
- name: *bump-blob-talloc-job-name
serial: true
plan:
- in_parallel:
- get: talloc-latest
trigger: true
- get: smb-volume-release-master
- get: cryogenics-concourse-tasks
- get: image-cryogenics-essentials
- load_var: talloc-version
file: talloc-latest/version
format: json
- task: rewrite-version-file
image: image-cryogenics-essentials
config:
platform: linux
run:
path: sh
args:
- -exc
- cp -r talloc-latest/* distributed-package/ && echo ((.:talloc-version.version.ref)) > distributed-package/version
inputs:
- name: talloc-latest
outputs:
- name: distributed-package
- task: bump-talloc
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-blob/task.yml
input_mapping:
bosh-release: smb-volume-release-master
params:
AWS_ACCESS_KEY_ID: *upload_role_id
AWS_SECRET_ACCESS_KEY: *upload_role_secret
AWS_ROLE_ARN: *upload_role_arn
GIT_USERNAME: *github_user
GIT_EMAIL: *github_email
GIT_BRANCH: &bump-talloc-branch bump-talloc-to-((.:talloc-version.version.ref))
BLOB_NAME: talloc
BLOB_EXTENSION: tar.gz
KEEP_BLOBS_FILTER: xenial-talloc-2.3.1.tar.gz
- put: smb-volume-release-master-write
params:
repository: bosh-release-updated
branch: *bump-talloc-branch
- try:
task: create-talloc-update-pr
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
GH_TOKEN: *github_access_token
BASE: master
BRANCH: *bump-talloc-branch
LABELS: dependencies
TITLE: Update talloc tarball blob to ((.:talloc-version.version.ref))
MESSAGE: "This is an automatically generated Pull Request from the Cryogenics CI Bot.\
\nI have detected a new version of [talloc](https://www.samba.org/ftp/talloc/) and \
automatically bumped\nthis package to benefit from the latest changes.\
\nIf this does not look right, please reach out to the \
mapbu-cryogenics team.\n"
input_mapping:
source-repo: smb-volume-release-master-write
- name: *bump-blob-libtool-job-name
serial: true
plan:
- in_parallel:
- get: libtool-latest
trigger: true
- get: image-cryogenics-essentials
- get: smb-volume-release-master
- get: cryogenics-concourse-tasks
- load_var: libtool-version
file: libtool-latest/version
- task: bump-libtool
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-blob/task.yml
input_mapping:
distributed-package: libtool-latest
bosh-release: smb-volume-release-master
params:
AWS_ACCESS_KEY_ID: *upload_role_id
AWS_SECRET_ACCESS_KEY: *upload_role_secret
AWS_ROLE_ARN: *upload_role_arn
GIT_USERNAME: *github_user
GIT_EMAIL: *github_email
GIT_BRANCH: &bump-libtool-branch bump-libtool-to-((.:libtool-version))
BLOB_NAME: libtool
- put: smb-volume-release-master-write
params:
repository: bosh-release-updated
branch: *bump-libtool-branch
- try:
task: create-libtool-update-pr
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
GH_TOKEN: *github_access_token
BASE: master
BRANCH: *bump-libtool-branch
LABELS: dependencies
TITLE: Update libtool tarball blob to ((.:libtool-version))
MESSAGE: "This is an automatically generated Pull Request from the Cryogenics CI Bot.\
\nI have detected a new version of [libtool](https://ftp.gnu.org/gnu/libtool/) and \
automatically bumped\nthis package to benefit from the latest changes.\
\nIf this does not look right, please reach out to the \
mapbu-cryogenics team.\n"
input_mapping:
source-repo: smb-volume-release-master-write
- name: bump-golang
serial: true
plan:
- in_parallel:
- get: cryogenics-concourse-tasks
- get: golang-release
trigger: true
- get: smb-volume-release-bump-golang-master
- get: image-cryogenics-essentials
- load_var: golang-release-version
file: golang-release/.git/describe_ref
- task: bump-golang
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-golang/task.yml
input_mapping:
release: smb-volume-release-bump-golang-master
vendored-package-release: golang-release
params:
VENDORED_PACKAGE_NAME: golang-1-linux
VENDOR_UPDATES_BRANCH: &golang-vendor-branch bump-golang-vendor-((.:golang-release-version))
COMMIT_USERNAME: bump-golang CI job
COMMIT_USEREMAIL: [email protected]
AWS_ACCESS_KEY_ID: *upload_role_id
AWS_SECRET_ACCESS_KEY: *upload_role_secret
AWS_ASSUME_ROLE_ARN: *upload_role_arn
- put: smb-volume-release-master-write
params:
repository: release-with-updated-vendored-package
branch: *golang-vendor-branch
- try:
# We've seen cases where there are 2 or more new releases of
# golang-release which causes this job to trigger 2x or more. A PR will
# be created on the 1st build. On the following ones, it is possible
# that this task will fail as there exist already a PR (which is
# probably flowing through the pipeline). To prevent this scenario
# we're making this step best-effort.
# This also makes the job idempotent. If we retrigger the job but if
# there are no new version of golang-release, this step will fail
# saying "Your branch is up-to-date with
# 'origin/golang-vendor-update'."
task: create-golang-vendor-pull-request
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
GH_TOKEN: *github_access_token
BASE: master
BRANCH: *golang-vendor-branch
LABELS: dependencies
TITLE: Update vendored package golang-1-linux
MESSAGE: "This is an automatically generated Pull Request from the Cryogenics CI Bot.\
\nI have detected a new version of [golang-release](https://github.com/bosh-packages/golang-release) and \
automatically bumped\nthis package to benefit from the latest changes.\
\nIf this does not look right, please reach out to the \
mapbu-cryogenics team.\n"
input_mapping:
source-repo: smb-volume-release-master-write
- name: update-go-directive-for-smbbroker-for-gomod-directive-updates
serial: true
plan:
- in_parallel:
- get: golang-release
trigger: true
passed:
- bump-golang
- get: cryogenics-concourse-tasks
passed:
- bump-golang
- get: smbbroker
- get: image-cryogenics-essentials
- task: update-go-directive
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/tasks/bosh/update-go-directive/task.yml
input_mapping:
bosh-release-repo-with-vendored-golang: golang-release
golang-project-repo: smbbroker
output_mapping:
golang-project-repo: smbbroker
params:
COMMIT_USERNAME: bump-golang CI job
COMMIT_USEREMAIL: [email protected]
PATH_TO_GO_MODULE: .
- load_var: golang-release-version
file: golang-release/.git/describe_ref
- put: smbbroker-write
params:
repository: smbbroker
branch: &mapfs-gomod-update-branch bump-golang-vendor-((.:golang-release-version))
force: true # If the last PR got stuck just overwrite it with new stuff
- task: create-gomod-directive-updates-pull-request
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
GH_TOKEN: *github_access_token
BASE: master
BRANCH: *mapfs-gomod-update-branch
LABELS: dependencies
TITLE: Update gomod directive
MESSAGE: |
This is an automatically generated Pull Request from the Cryogenics CI
Bot. I have detected a new version of
[golang-release](https://github.com/bosh-packages/golang-release) and
automatically updated the go mod directive for this go module. If this
does not look right, please reach out to the mapbu-cryogenics team.
input_mapping:
source-repo: smbbroker-write
- name: update-go-directive-for-smbdriver-for-gomod-directive-updates
serial: true
plan:
- in_parallel:
- get: golang-release
trigger: true
passed:
- bump-golang
- get: cryogenics-concourse-tasks
passed:
- bump-golang
- get: smbdriver
- get: image-cryogenics-essentials
- task: update-go-directive
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/tasks/bosh/update-go-directive/task.yml
input_mapping:
bosh-release-repo-with-vendored-golang: golang-release
golang-project-repo: smbdriver
output_mapping:
golang-project-repo: smbdriver
params:
COMMIT_USERNAME: bump-golang CI job
COMMIT_USEREMAIL: [email protected]
PATH_TO_GO_MODULE: .
- load_var: golang-release-version
file: golang-release/.git/describe_ref
- put: smbdriver-write
params:
repository: smbdriver
branch: &smbdriver-golang-vendor-update-branch bump-golang-vendor-((.:golang-release-version))
force: true # If the last PR got stuck just overwrite it with new stuff
- task: create-gomod-directive-updates-pull-request
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
GH_TOKEN: *github_access_token
BASE: master
BRANCH: *smbdriver-golang-vendor-update-branch
LABELS: dependencies
TITLE: Update gomod directive
MESSAGE: |
This is an automatically generated Pull Request from the Cryogenics CI
Bot. I have detected a new version of
[golang-release](https://github.com/bosh-packages/golang-release) and
automatically updated the go mod directive for this go module. If this
does not look right, please reach out to the
mapbu-cryogenics team.
input_mapping:
source-repo: smbdriver-write
- name: smb-volume-release-job-tests
plan:
- in_parallel:
fail_fast: true
steps:
- get: persi-ci
- get: image-cryogenics-essentials
- get: smb-volume-release
trigger: true
- get: stemcell
- put: cf-deployment-env
timeout: 6h
attempts: *number_of_claim_env_retries
params:
action: create
duration: 24h
resource: cf-deployment
timeout: 6h
- task: rspec
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/run-rspec.build.yml
input_mapping:
test-repo: smb-volume-release
- task: bosh-release-test
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/run_bosh_release_tests.build.yml
attempts: 1
input_mapping:
test-repo: smb-volume-release
env: cf-deployment-env
on_failure:
put: cf-deployment-env
attempts: *number_of_claim_env_retries
params:
action: release
resource: cf-deployment-env
- name: deploy-cf
public: true
build_logs_to_retain: 100
plan:
- in_parallel:
fail_fast: true
steps:
- get: cf-deployment-env
passed: [ smb-volume-release-job-tests ]
trigger: true
- get: cf-deployment-concourse-tasks
- get: image-cryogenics-essentials
- get: cf-deployment
- get: persi-ci
- get: smb-volume-release
passed: [ smb-volume-release-job-tests ]
- task: collect-persi-ci-ops-files
image: image-cryogenics-essentials
file: cf-deployment-concourse-tasks/collect-ops-files/task.yml
input_mapping:
base-ops-files: cf-deployment
new-ops-files: persi-ci
params:
BASE_OPS_FILE_DIR: "operations"
- task: generate-variables
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/generate_variables.build.yml
params:
GENERATE_NFS_VARS: false
GENERATE_SMB_VARS: true
SMB_USERNAME: *pats_username
SMB_PASSWORD: *pats_password
- task: bosh-deploy-cf
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/deploy-cf-with-multiple-releases.build.yml
input_mapping:
toolsmiths-env: cf-deployment-env
ops-files: collected-ops-files
vars-files: generated-vars
params:
VARS_FILES: "smb-vars.yml"
OPS_FILES: "operations/use-compiled-releases.yml
operations/scale-to-one-az.yml
operations/test/enable-smb-test-server.yml
operations/backup-and-restore/enable-backup-restore.yml
operations/enable-smb-volume-service.yml
updated-smb-releases.yml
operations/experimental/fast-deploy-with-downtime-and-danger.yml"
- task: run-smoke-tests
image: image-cryogenics-essentials
file: cf-deployment-concourse-tasks/run-errand/task.yml
input_mapping:
toolsmiths-env: cf-deployment-env
params:
ERRAND_NAME: smoke_tests
- task: run-smb-broker-errand
image: image-cryogenics-essentials
attempts: 3
file: cf-deployment-concourse-tasks/run-errand/task.yml
input_mapping:
toolsmiths-env: cf-deployment-env
params:
ERRAND_NAME: smbbrokerpush
INSTANCE: smb-broker-push
- name: cats