6 - _lf_info_vote_common: &lf_info_vote_common
7 name: lf-info-vote-common
9 gerrit_trigger_file_paths:
10 - compare-type: REG_EXP
17 project-type: freestyle
21 - lf-infra-properties:
25 - lf-infra-parameters:
26 project: $GERRIT_PROJECT
28 refspec: "refs/heads/{branch}"
33 build-timeout: "{build-timeout}"
34 jenkins-ssh-credential: "{jenkins-ssh-credential}"
39 - _lf_info_vote_verify: &lf_info_vote_verify
40 name: lf-info-vote-verify
47 git-url: "$GIT_URL/$PROJECT"
49 submodule-disable: false
50 submodule-recursive: true
51 gerrit-skip-vote: false
53 gerrit_verify_triggers:
54 - comment-added-contains-event:
55 comment-contains-value: '^Patch Set\s+\d+:\s+vote\s*$'
56 - comment-added-event:
57 approval-category: "Code-Review"
64 disabled: "{disable-job}"
68 jenkins-ssh-credential: "{jenkins-ssh-credential}"
73 <<: *lf_info_vote_common
74 # yamllint disable-line rule:key-duplicates
75 <<: *lf_info_vote_verify
78 - lf-infra-gerrit-scm:
79 branch: "$GERRIT_BRANCH"
80 jenkins-ssh-credential: "{jenkins-ssh-credential}"
82 refspec: "$GERRIT_REFSPEC"
83 submodule-recursive: "{submodule-recursive}"
84 submodule-timeout: "{submodule-timeout}"
85 submodule-disable: "{submodule-disable}"
86 choosing-strategy: gerrit
90 server-name: "{gerrit-server-name}"
91 trigger-on: "{obj:gerrit_verify_triggers}"
93 - project-compare-type: "ANT"
96 - branch-compare-type: "ANT"
97 branch-pattern: "**/master"
98 file-paths: "{obj:gerrit_trigger_file_paths}"
100 successful: "{gerrit-skip-vote}"
101 failed: "{gerrit-skip-vote}"
102 unstable: "{gerrit-skip-vote}"
103 notbuilt: "{gerrit-skip-vote}"