6 - _lf_pipeline_common: &lf_pipeline_common
7 name: lf-pipeline-common
10 # Default parameters #
11 ######################
13 gerrit_trigger_file_paths:
14 - compare-type: REG_EXP
15 pattern: "Jenkinsfile.*"
17 # github_included_regions MUST match gerrit_trigger_file_paths
18 github_included_regions:
25 project-type: freestyle
29 - lf-infra-properties:
33 - lf-infra-parameters:
36 refspec: "refs/heads/{branch}"
41 build-timeout: "{build-timeout}"
42 jenkins-ssh-credential: "{jenkins-ssh-credential}"
51 - _lf_pipeline_verify: &lf_pipeline_verify
52 name: lf-pipeline-verify
54 ######################
55 # Default parameters #
56 ######################
62 git-url: "$GIT_URL/$PROJECT"
63 github-url: "https://github.com"
66 submodule-recursive: true
68 submodule-disable: false
70 gerrit_verify_triggers:
71 - patchset-created-event:
73 exclude-trivial-rebase: false
74 exclude-no-code-change: false
75 - draft-published-event
76 - comment-added-contains-event:
77 comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
83 disabled: "{disable-job}"
86 - lf-infra-pipeline-verify
89 name: "{project-name}-pipeline-verify-{stream}"
90 id: gerrit-pipeline-verify
92 <<: *lf_pipeline_common
93 # yamllint disable-line rule:key-duplicates
94 <<: *lf_pipeline_verify
97 - lf-infra-gerrit-scm:
98 branch: "$GERRIT_BRANCH"
99 jenkins-ssh-credential: "{jenkins-ssh-credential}"
101 refspec: "$GERRIT_REFSPEC"
102 submodule-recursive: "{submodule-recursive}"
103 submodule-timeout: "{submodule-timeout}"
104 submodule-disable: "{submodule-disable}"
105 choosing-strategy: gerrit
109 server-name: "{gerrit-server-name}"
110 trigger-on: "{obj:gerrit_verify_triggers}"
112 - project-compare-type: "ANT"
113 project-pattern: "{project-pattern}"
115 - branch-compare-type: "ANT"
116 branch-pattern: "**/{branch}"
117 file-paths: "{obj:gerrit_trigger_file_paths}"
120 name: "{project-name}-pipeline-verify-{stream}"
121 id: github-pipeline-verify
123 <<: *lf_pipeline_common
124 # yamllint disable-line rule:key-duplicates
125 <<: *lf_pipeline_verify
128 - lf-infra-properties:
129 build-days-to-keep: "{build-days-to-keep}"
131 url: "{github-url}/{github-org}/{project}"
134 - lf-infra-github-scm:
135 url: "{git-clone-url}{github-org}/{project}"
136 refspec: "+refs/pull/*:refs/remotes/origin/pr/*"
138 submodule-recursive: "{submodule-recursive}"
139 submodule-timeout: "{submodule-timeout}"
140 submodule-disable: "{submodule-disable}"
141 choosing-strategy: default
142 jenkins-ssh-credential: "{jenkins-ssh-credential}"
145 - github-pull-request:
146 trigger-phrase: "^(recheck|reverify)$"
147 only-trigger-phrase: false
148 status-context: "Pipeline Verify"
151 included-regions: "{obj:github_included_regions}"
152 white-list-target-branches: