Pass multiple pattern args in logs-deploy.sh
[releng/global-jjb.git] / jjb / lf-info-vote.yaml
1 ---
2 ####################
3 # COMMON FUNCTIONS #
4 ####################
5
6 - lf_info_vote_common: &lf_info_vote_common
7     name: lf-info-vote-common
8
9     gerrit_trigger_file_paths:
10       - compare-type: REG_EXP
11         pattern: 'INFO.yaml'
12
13     #####################
14     # Job Configuration #
15     #####################
16
17     project-type: freestyle
18     node: '{build-node}'
19
20     properties:
21       - lf-infra-properties:
22           build-days-to-keep: 7
23
24     parameters:
25       - lf-infra-parameters:
26           project: $GERRIT_PROJECT
27           branch: 'master'
28           refspec: 'refs/heads/{branch}'
29           stream: 'master'
30
31     wrappers:
32       - lf-infra-wrappers:
33           build-timeout: '{build-timeout}'
34           jenkins-ssh-credential: '{jenkins-ssh-credential}'
35
36     publishers:
37       - lf-infra-publish
38
39
40 - lf_info_vote_verify: &lf_info_vote_verify
41     name: lf-info-vote-verify
42
43     branch: master
44     stream: master
45     build-days-to-keep: 7
46     build-timeout: 15
47     disable-job: false
48     git-url: '$GIT_URL/$PROJECT'
49     submodule-timeout: 10
50     submodule-recursive: true
51     gerrit-skip-vote: false
52
53     gerrit_verify_triggers:
54       - comment-added-contains-event:
55           comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(vote)$'
56       - comment-added-event:
57           approval-category: 'CRVW'
58           approval-value: 2
59       - comment-added:
60           approval-category: 'Code-Review'
61           approval-value: 2
62
63     #####################
64     # Job Configuration #
65     #####################
66
67     disabled: '{disable-job}'
68
69     builders:
70       - check-info-votes:
71           jenkins-ssh-credential: '{jenkins-ssh-credential}'
72
73 - job-template:
74     name: 'info-vote'
75     id: info-vote-verify
76     <<: *lf_info_vote_common
77     # yamllint disable-line rule:key-duplicates
78     <<: *lf_info_vote_verify
79
80     scm:
81       - lf-infra-gerrit-scm:
82           branch: '$GERRIT_BRANCH'
83           jenkins-ssh-credential: '{jenkins-ssh-credential}'
84           git-url: '{git-url}'
85           refspec: '$GERRIT_REFSPEC'
86           submodule-recursive: '{submodule-recursive}'
87           submodule-timeout: '{submodule-timeout}'
88           choosing-strategy: gerrit
89
90     triggers:
91       - gerrit:
92           server-name: '{gerrit-server-name}'
93           trigger-on: '{obj:gerrit_verify_triggers}'
94           projects:
95             - project-compare-type: 'REG_EXP'
96               project-pattern: '**'
97               branches:
98                 - branch-compare-type: 'ANT'
99                   branch-pattern: '**/master'
100               file-paths: '{obj:gerrit_trigger_file_paths}'
101           skip-vote:
102             successful: '{gerrit-skip-vote}'
103             failed: '{gerrit-skip-vote}'
104             unstable: '{gerrit-skip-vote}'
105             notbuilt: '{gerrit-skip-vote}'