Fix: Update release jobs triggers
[releng/global-jjb.git] / jjb / lf-release-jobs.yaml
1 # SPDX-License-Identifier: Apache-2.0
2 ##############################################################################
3 # Copyright (c) 2019 The Linux Foundation and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10 ####################
11 # COMMON FUNCTIONS #
12 ####################
13
14 - _lf_release_common: &lf_release_common
15     name: lf-release-common
16
17     #####################
18     # Job Configuration #
19     #####################
20
21     project-type: freestyle
22     node: "{build-node}"
23
24     properties:
25       - lf-infra-properties:
26           build-days-to-keep: 7
27
28     publishers:
29       - lf-infra-publish
30
31 ##################
32 # RELEASE VERIFY #
33 ##################
34
35 - _lf_release_verify: &lf_release_verify
36     name: lf-release-verify
37
38     ######################
39     # Default parameters #
40     ######################
41
42     build-days-to-keep: 7
43     build-timeout: 15
44     disable-job: false
45     git-url: "$GIT_URL/$PROJECT"
46     gerrit-skip-vote: false
47     stream: master
48     use-release-file: true
49
50     gerrit_verify_triggers:
51       - patchset-created-event:
52           exclude-drafts: true
53           exclude-trivial-rebase: false
54           exclude-no-code-change: false
55       - draft-published-event
56       - comment-added-contains-event:
57           # yamllint disable-line rule:line-length
58           comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
59
60     github_included_regions:
61       - '(releases\/.*\.yaml|\.releases\/.*\.yaml)'
62
63     #####################
64     # Job Configuration #
65     #####################
66
67     disabled: "{disable-job}"
68
69     parameters:
70       - lf-infra-parameters:
71           project: "{project}"
72           branch: "$GERRIT_BRANCH"
73           stream: "$GERRIT_BRANCH"
74       - lf-build-with-parameters-maven-release:
75           use-release-file: "{use-release-file}"
76
77     builders:
78       - lf-infra-pre-build
79       - conditional-step:
80           condition-kind: regex-match
81           regex: "^.*-docker-.*"
82           label: "{build-node}"
83           steps:
84             - lf-provide-maven-settings:
85                 global-settings-file: "global-settings"
86                 settings-file: "{mvn-settings}"
87             - shell: !include-raw-escape: ../shell/docker-login.sh
88             - lf-provide-maven-settings-cleanup
89       - config-file-provider:
90           files:
91             - file-id: sigul-config
92               variable: SIGUL_CONFIG
93             - file-id: sigul-password
94               variable: SIGUL_PASSWORD
95             - file-id: sigul-pki
96               variable: SIGUL_PKI
97             - file-id: signing-pubkey
98               variable: SIGNING_PUBKEY
99       - shell: !include-raw-escape: ../shell/sigul-configuration.sh
100       - shell: !include-raw-escape: ../shell/sigul-install.sh
101       - lf-release
102
103 - job-template:
104     name: "{project-name}-release-verify-{stream}"
105     id: gerrit-release-verify
106     <<: *lf_release_common
107     # yamllint disable-line rule:key-duplicates
108     <<: *lf_release_verify
109
110     wrappers:
111       - lf-infra-wrappers:
112           build-timeout: "{build-timeout}"
113           jenkins-ssh-credential: "{jenkins-ssh-credential}"
114
115     scm:
116       - lf-infra-gerrit-scm:
117           git-url: "{git-url}"
118           refspec: "$GERRIT_REFSPEC"
119           branch: "$GERRIT_BRANCH"
120           submodule-disable: true
121           submodule-recursive: false
122           submodule-timeout: 10
123           choosing-strategy: gerrit
124           jenkins-ssh-credential: "{jenkins-ssh-credential}"
125
126     triggers:
127       - gerrit:
128           server-name: "{gerrit-server-name}"
129           trigger-on: "{obj:gerrit_verify_triggers}"
130           projects:
131             - project-compare-type: "ANT"
132               project-pattern: "{project}"
133               branches:
134                 - branch-compare-type: "ANT"
135                   branch-pattern: "**/{branch}"
136               file-paths:
137                 - compare-type: REG_EXP
138                   pattern: '(releases\/.*\.yaml|\.releases\/.*\.yaml)'
139           skip-vote:
140             successful: "{gerrit-skip-vote}"
141             failed: "{gerrit-skip-vote}"
142             unstable: "{gerrit-skip-vote}"
143             notbuilt: "{gerrit-skip-vote}"
144
145 - job-template:
146     name: "{project-name}-release-verify-{stream}"
147     id: github-release-verify
148     <<: *lf_release_common
149     # yamllint disable-line rule:key-duplicates
150     <<: *lf_release_verify
151
152     properties:
153       - lf-infra-properties:
154           build-days-to-keep: "{build-days-to-keep}"
155       - github:
156           url: "{github-url}/{github-org}/{project}"
157
158     wrappers:
159       - lf-infra-wrappers:
160           build-timeout: "{build-timeout}"
161           jenkins-ssh-credential: "{jenkins-ssh-credential}"
162
163     scm:
164       - lf-infra-github-scm:
165           url: "{git-clone-url}{github-org}/{project}"
166           refspec: "+refs/pull/*:refs/remotes/origin/pr/*"
167           branch: "$sha1"
168           submodule-recursive: "{submodule-recursive}"
169           submodule-timeout: "{submodule-timeout}"
170           submodule-disable: "{submodule-disable}"
171           choosing-strategy: default
172           jenkins-ssh-credential: "{jenkins-ssh-credential}"
173
174     triggers:
175       - github-pull-request:
176           trigger-phrase: ^(recheck|reverify)$
177           only-trigger-phrase: false
178           status-context: "Github Release Verify"
179           permit-all: true
180           github-hooks: true
181           white-list-target-branches:
182             - "{branch}"
183           included-regions: "{obj:github_included_regions}"
184
185 #################
186 # RELEASE MERGE #
187 #################
188
189 - _lf_release_merge: &lf_release_merge
190     name: lf-release-merge
191
192     ######################
193     # Default parameters #
194     ######################
195
196     build-days-to-keep: 7
197     build-timeout: 15
198     disable-job: false
199     git-url: "$GIT_URL/$PROJECT"
200     stream: master
201     use-release-file: true
202
203     gerrit_merge_triggers:
204       - change-merged-event
205       - comment-added-contains-event:
206           comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$'
207
208     github_included_regions:
209       - '(releases\/.*\.yaml|\.releases\/.*\.yaml)'
210
211     #####################
212     # Job Configuration #
213     #####################
214
215     disabled: "{disable-job}"
216
217     parameters:
218       - lf-infra-parameters:
219           project: "{project}"
220           branch: "$GERRIT_BRANCH"
221           stream: "$GERRIT_BRANCH"
222       - lf-build-with-parameters-maven-release:
223           use-release-file: "{use-release-file}"
224       - bool:
225           name: TAG_RELEASE
226           default: true
227           description: |
228             Tag Gerrit repo after release.
229       - bool:
230           name: DRY_RUN
231           default: false
232           description: |
233             If DRY_RUN is enabled artifacts are not published.
234
235     builders:
236       - lf-infra-pre-build
237       - conditional-step:
238           condition-kind: regex-match
239           regex: "^.*-docker-.*"
240           label: "{build-node}"
241           steps:
242             - lf-provide-maven-settings:
243                 global-settings-file: "global-settings"
244                 settings-file: "{mvn-settings}"
245             - shell: !include-raw-escape: ../shell/docker-login.sh
246             - lf-provide-maven-settings-cleanup
247       - config-file-provider:
248           files:
249             - file-id: sigul-config
250               variable: SIGUL_CONFIG
251             - file-id: sigul-password
252               variable: SIGUL_PASSWORD
253             - file-id: sigul-pki
254               variable: SIGUL_PKI
255             - file-id: signing-pubkey
256               variable: SIGNING_PUBKEY
257       - shell: !include-raw-escape: ../shell/sigul-configuration.sh
258       - shell: !include-raw-escape: ../shell/sigul-install.sh
259       - lf-release
260
261 - job-template:
262     name: "{project-name}-release-merge-{stream}"
263     id: gerrit-release-merge
264     <<: *lf_release_common
265     # yamllint disable-line rule:key-duplicates
266     <<: *lf_release_merge
267
268     wrappers:
269       - lf-infra-wrappers:
270           build-timeout: "{build-timeout}"
271           jenkins-ssh-credential: "{jenkins-ssh-release-credential}"
272
273     scm:
274       - lf-infra-gerrit-scm:
275           jenkins-ssh-credential: "{jenkins-ssh-credential}"
276           git-url: "{git-url}"
277           refspec: "$GERRIT_REFSPEC"
278           branch: "$GERRIT_BRANCH"
279           submodule-disable: true
280           submodule-recursive: false
281           submodule-timeout: 10
282           # release merge jobs build from commit not tip
283           choosing-strategy: gerrit
284
285     triggers:
286       - gerrit:
287           server-name: "{gerrit-server-name}"
288           trigger-on: "{obj:gerrit_merge_triggers}"
289           projects:
290             - project-compare-type: "ANT"
291               project-pattern: "{project}"
292               branches:
293                 - branch-compare-type: "ANT"
294                   branch-pattern: "**/{branch}"
295               file-paths:
296                 - compare-type: REG_EXP
297                   pattern: '(releases\/.*\.yaml|\.releases\/.*\.yaml)'
298
299 - job-template:
300     name: "{project-name}-release-merge-{stream}"
301     id: github-release-merge
302     <<: *lf_release_common
303     # yamllint disable-line rule:key-duplicates
304     <<: *lf_release_merge
305
306     properties:
307       - lf-infra-properties:
308           build-days-to-keep: "{build-days-to-keep}"
309       - github:
310           url: "{github-url}/{github-org}/{project}"
311
312     wrappers:
313       - lf-infra-wrappers:
314           build-timeout: "{build-timeout}"
315           jenkins-ssh-credential: "{jenkins-ssh-credential}"
316
317     scm:
318       - lf-infra-github-scm:
319           url: "{git-clone-url}{github-org}/{project}"
320           refspec: "+refs/pull/*:refs/remotes/origin/pr/*"
321           branch: "$sha1"
322           submodule-recursive: "{submodule-recursive}"
323           submodule-timeout: "{submodule-timeout}"
324           submodule-disable: "{submodule-disable}"
325           choosing-strategy: default
326           jenkins-ssh-credential: "{jenkins-ssh-credential}"
327
328     triggers:
329       - github-pull-request:
330           trigger-phrase: "^remerge$"
331           only-trigger-phrase: true
332           status-context: "Github Release Merge"
333           permit-all: true
334           github-hooks: true
335           white-list-target-branches:
336             - "{branch}"
337           included-regions: "{obj:github_included_regions}"
338
339 ################
340 # PyPI RELEASE #
341 ################
342
343 - _lf_pypi_verify_wrappers: &lf_pypi_verify_wrappers
344     name: lf-pypi-verify-wrappers
345
346     wrappers:
347       - lf-infra-wrappers:
348           build-timeout: "{build-timeout}"
349           jenkins-ssh-credential: "{jenkins-ssh-credential}"
350
351 - _lf_pypi_release_wrappers: &lf_pypi_release_wrappers
352     name: lf-pypi-release-wrappers
353
354     wrappers:
355       - lf-infra-wrappers:
356           build-timeout: "{build-timeout}"
357           jenkins-ssh-credential: "{jenkins-ssh-release-credential}"
358
359 - _lf_pypi_release: &lf_pypi_release
360     name: lf-pypi-release
361
362     ######################
363     # Default parameters #
364     ######################
365
366     branch: master # for github
367     build-days-to-keep: 7
368     build-timeout: 15
369     disable-job: false
370     gerrit-skip-vote: false
371     git-url: "$GIT_URL/$PROJECT"
372     github-url: "https://github.com"
373     pypi-repo: pypi
374     pypi-stage-index: https://test.pypi.org/simple
375     submodule-disable: true
376     submodule-recursive: false
377     submodule-timeout: 10
378     use-release-file: true
379
380     # define once and use twice; jobs MUST NOT override
381     gerrit_release_trigger_file_paths:
382       - compare-type: REG_EXP
383         pattern: '(releases\/pypi.*\.yaml|\.releases\/pypi.*\.yaml)'
384
385     # yamllint disable-line rule:line-length
386     # github_release_included_regions MUST match gerrit_release_trigger_file_paths
387     github_release_included_regions:
388       - 'releases\/pypi.*\.yaml'
389       - '.releases\/pypi.*\.yaml'
390
391     parameters:
392       - lf-infra-parameters:
393           project: "{project}"
394           branch: "$GERRIT_BRANCH"
395           stream: "$GERRIT_BRANCH"
396       # accept all entries defined in the release-yaml file
397       - string:
398           name: DISTRIBUTION_TYPE
399           default: "pypi"
400           description: "The Jenkins release job distribution type."
401       - string:
402           name: LOG_DIR
403           default: ""
404           description: "The partial path of logs from the PyPI merge job."
405       - string:
406           name: GIT_TAG
407           default: ""
408           description: "Tag to push to git repo; optional, defaults to VERSION."
409       - string:
410           name: PYPI_PROJECT
411           default: ""
412           description: "The PyPI project name."
413       - string:
414           name: PYTHON_VERSION
415           default: ""
416           description: "The Python compatibility version, example: 3.6"
417       - string:
418           name: VERSION
419           default: ""
420           description: "The module version, example: 1.0.0"
421       # special parameters for manual use of the Jenkins job
422       - bool:
423           name: USE_RELEASE_FILE
424           default: true
425           description: "Set to False (unchecked) to build with parameters"
426       - bool:
427           name: TAG_RELEASE
428           default: true
429           description: |
430             Tag Gerrit repo after release.
431       - bool:
432           name: DRY_RUN
433           default: false
434           description: "Set to True (checked) to skip uploading artifacts"
435
436     builders:
437       - lf-infra-pre-build
438       - config-file-provider:
439           files:
440             - file-id: sigul-config
441               variable: SIGUL_CONFIG
442             - file-id: sigul-password
443               variable: SIGUL_PASSWORD
444             - file-id: sigul-pki
445               variable: SIGUL_PKI
446             - file-id: signing-pubkey
447               variable: SIGNING_PUBKEY
448             - file-id: pypirc
449               target: "$HOME/.pypirc"
450       - shell: !include-raw-escape: ../shell/sigul-configuration.sh
451       - shell: !include-raw-escape: ../shell/sigul-install.sh
452       - inject:
453           properties-content: |
454             PYPI_INDEX={pypi-stage-index}
455             REPOSITORY={pypi-repo}
456       - shell: !include-raw-escape: ../shell/release-job.sh
457
458 - job-template:
459     name: "{project-name}-pypi-release-merge"
460     id: gerrit-pypi-release-merge
461     <<: *lf_release_common
462     <<: *lf_pypi_release_wrappers
463     <<: *lf_pypi_release
464
465     scm:
466       - lf-infra-gerrit-scm:
467           jenkins-ssh-credential: "{jenkins-ssh-credential}"
468           git-url: "{git-url}"
469           refspec: "$GERRIT_REFSPEC"
470           branch: "$GERRIT_BRANCH"
471           submodule-recursive: "{submodule-recursive}"
472           submodule-timeout: "{submodule-timeout}"
473           submodule-disable: "{submodule-disable}"
474           # release merge jobs build from commit not tip
475           choosing-strategy: gerrit
476
477     triggers:
478       - gerrit:
479           server-name: "{gerrit-server-name}"
480           trigger-on:
481             - change-merged-event
482             - comment-added-contains-event:
483                 comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$'
484           projects:
485             - project-compare-type: "ANT"
486               project-pattern: "{project}"
487               branches:
488                 - branch-compare-type: ANT
489                   branch-pattern: "**/{branch}"
490               file-paths: "{obj:gerrit_release_trigger_file_paths}"
491
492 - job-template:
493     name: "{project-name}-pypi-release-merge"
494     id: github-pypi-release-merge
495     <<: *lf_release_common
496     <<: *lf_pypi_release_wrappers
497     <<: *lf_pypi_release
498
499     properties:
500       - github:
501           url: "{github-url}/{github-org}/{project}"
502
503     scm:
504       - lf-infra-github-scm:
505           url: "{git-clone-url}{github-org}/{project}"
506           refspec: ""
507           branch: "refs/heads/{branch}"
508           submodule-recursive: "{submodule-recursive}"
509           submodule-timeout: "{submodule-timeout}"
510           submodule-disable: "{submodule-disable}"
511           choosing-strategy: default
512           jenkins-ssh-credential: "{jenkins-ssh-credential}"
513
514     triggers:
515       - github-pull-request:
516           trigger-phrase: "^(remerge)$"
517           only-trigger-phrase: false
518           status-context: "PyPI Release Merge"
519           permit-all: true
520           github-hooks: true
521           white-list-target-branches:
522             - "{branch}"
523           included-regions: "{obj:github_release_included_regions}"
524
525 - job-template:
526     name: "{project-name}-pypi-release-verify"
527     id: gerrit-pypi-release-verify
528     <<: *lf_release_common
529     <<: *lf_pypi_verify_wrappers
530     <<: *lf_pypi_release
531
532     scm:
533       - lf-infra-gerrit-scm:
534           jenkins-ssh-credential: "{jenkins-ssh-credential}"
535           git-url: "{git-url}"
536           refspec: "$GERRIT_REFSPEC"
537           branch: "$GERRIT_BRANCH"
538           submodule-recursive: "{submodule-recursive}"
539           submodule-timeout: "{submodule-timeout}"
540           submodule-disable: "{submodule-disable}"
541           choosing-strategy: gerrit
542
543     triggers:
544       - gerrit:
545           server-name: "{gerrit-server-name}"
546           trigger-on:
547             - patchset-created-event:
548                 exclude-drafts: true
549                 exclude-trivial-rebase: false
550                 exclude-no-code-change: false
551             - draft-published-event
552             - comment-added-contains-event:
553                 # yamllint disable-line rule:line-length
554                 comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
555           projects:
556             - project-compare-type: "ANT"
557               project-pattern: "{project}"
558               branches:
559                 - branch-compare-type: ANT
560                   branch-pattern: "**/{branch}"
561               file-paths: "{obj:gerrit_release_trigger_file_paths}"
562
563 - job-template:
564     name: "{project-name}-pypi-release-verify"
565     id: github-pypi-release-verify
566     <<: *lf_release_common
567     <<: *lf_pypi_verify_wrappers
568     <<: *lf_pypi_release
569
570     properties:
571       - github:
572           url: "{github-url}/{github-org}/{project}"
573
574     scm:
575       - lf-infra-github-scm:
576           url: "{git-clone-url}{github-org}/{project}"
577           refspec: ""
578           branch: "refs/heads/{branch}"
579           submodule-recursive: "{submodule-recursive}"
580           submodule-timeout: "{submodule-timeout}"
581           submodule-disable: "{submodule-disable}"
582           choosing-strategy: default
583           jenkins-ssh-credential: "{jenkins-ssh-credential}"
584
585     triggers:
586       - github-pull-request:
587           trigger-phrase: "^(recheck|reverify)$"
588           only-trigger-phrase: false
589           status-context: "PyPI Release Verify"
590           permit-all: true
591           github-hooks: true
592           white-list-target-branches:
593             - "{branch}"
594           included-regions: "{obj:github_release_included_regions}"
595
596 ########################
597 # PackageCloud RELEASE #
598 ########################
599
600 - _lf_packagecloud_release_common: &lf_packagecloud_release_common
601     name: lf-packagecloud-release-common
602
603     ######################
604     # Default parameters #
605     ######################
606
607     build-days-to-keep: 7
608     build-timeout: 15
609     disable-job: false
610     git-url: "$GIT_URL/$PROJECT"
611     gerrit-skip-vote: false
612     use-release-file: true
613     account-name: ""
614     source-repo: ""
615
616     #####################
617     # Job Configuration #
618     #####################
619
620     disabled: "{disable-job}"
621
622     parameters:
623       - lf-infra-parameters:
624           project: "{project}"
625           branch: "$GERRIT_BRANCH"
626           stream: "$GERRIT_BRANCH"
627       - string:
628           name: DISTRIBUTION_TYPE
629           default: "packagecloud"
630           description: "The Jenkins release job distribution type."
631       - bool:
632           name: TAG_RELEASE
633           default: true
634           description: |
635             Tag Gerrit repo after release.
636       - bool:
637           name: DRY_RUN
638           default: false
639           description: |
640             If DRY_RUN is enabled artifacts are not promoted.
641       - bool:
642           name: USE_RELEASE_FILE
643           default: "{use-release-file}"
644           description: "Set to False for job built with parameters"
645
646     builders:
647       - lf-infra-pre-build
648       - config-file-provider:
649           files:
650             - file-id: sigul-config
651               variable: SIGUL_CONFIG
652             - file-id: sigul-password
653               variable: SIGUL_PASSWORD
654             - file-id: sigul-pki
655               variable: SIGUL_PKI
656             - file-id: signing-pubkey
657               variable: SIGNING_PUBKEY
658             - file-id: "packagecloud_api"
659               target: "$HOME/packagecloud_api"
660             - file-id: packagecloud-account
661               variable: ACCOUNT_NAME_FILE
662       - shell: !include-raw-escape: ../shell/sigul-configuration.sh
663       - shell: !include-raw-escape: ../shell/sigul-install.sh
664       - lf-release
665
666 - job-template:
667     name: "{project-name}-packagecloud-release-verify"
668     id: gerrit-packagecloud-release-verify
669     <<: *lf_release_common
670     <<: *lf_packagecloud_release_common
671
672     wrappers:
673       - lf-infra-wrappers:
674           build-timeout: "{build-timeout}"
675           jenkins-ssh-credential: "{jenkins-ssh-credential}"
676
677     scm:
678       - lf-infra-gerrit-scm:
679           git-url: "{git-url}"
680           refspec: "$GERRIT_REFSPEC"
681           branch: "$GERRIT_BRANCH"
682           submodule-disable: true
683           submodule-recursive: false
684           submodule-timeout: 10
685           choosing-strategy: gerrit
686           jenkins-ssh-credential: "{jenkins-ssh-credential}"
687
688     triggers:
689       - gerrit:
690           server-name: "{gerrit-server-name}"
691           trigger-on:
692             - patchset-created-event:
693                 exclude-drafts: true
694                 exclude-trivial-rebase: false
695                 exclude-no-code-change: false
696             - draft-published-event
697             - comment-added-contains-event:
698                 # yamllint disable-line rule:line-length
699                 comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
700           projects:
701             - project-compare-type: "ANT"
702               project-pattern: "{project}"
703               branches:
704                 - branch-compare-type: "ANT"
705                   branch-pattern: "**/{branch}"
706               file-paths:
707                 - compare-type: REG_EXP
708                   pattern: '(releases\/packagecloud.*\.yaml|\.releases\/packagecloud.*\.yaml)'
709           skip-vote:
710             successful: "{gerrit-skip-vote}"
711             failed: "{gerrit-skip-vote}"
712             unstable: "{gerrit-skip-vote}"
713             notbuilt: "{gerrit-skip-vote}"
714
715 - job-template:
716     name: "{project-name}-packagecloud-release-merge"
717     id: gerrit-packagecloud-release-merge
718     <<: *lf_release_common
719     <<: *lf_packagecloud_release_common
720
721     wrappers:
722       - lf-infra-wrappers:
723           build-timeout: "{build-timeout}"
724           jenkins-ssh-credential: "{jenkins-ssh-release-credential}"
725
726     scm:
727       - lf-infra-gerrit-scm:
728           jenkins-ssh-credential: "{jenkins-ssh-credential}"
729           git-url: "{git-url}"
730           refspec: "$GERRIT_REFSPEC"
731           branch: "$GERRIT_BRANCH"
732           submodule-disable: true
733           submodule-recursive: false
734           submodule-timeout: 10
735           # release merge jobs build from commit not tip
736           choosing-strategy: gerrit
737
738     triggers:
739       - gerrit:
740           server-name: "{gerrit-server-name}"
741           trigger-on:
742             - change-merged-event
743             - comment-added-contains-event:
744                 comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$'
745           projects:
746             - project-compare-type: "ANT"
747               project-pattern: "{project}"
748               branches:
749                 - branch-compare-type: "ANT"
750                   branch-pattern: "**/{branch}"
751               file-paths:
752                 - compare-type: REG_EXP
753                   pattern: '(releases\/packagecloud.*\.yaml|\.releases\/packagecloud.*\.yaml)'