3 name: '{project-name}-python-jobs'
5 # This job group contains all the recommended jobs that should be deployed
6 # for any project ci that is using Gerrit.
13 name: '{project-name}-github-python-jobs'
15 # This job group contains all the recommended jobs that should be deployed
16 # for any project ci that is using GitHub.
19 - github-python-xc-clm
27 name: lf-infra-tox-install
30 properties-content: 'PYTHON_VERSION={python-version}'
31 - shell: !include-raw-escape: ../shell/tox-install.sh
34 name: lf-infra-clm-python
37 properties-content: 'CLM_PROJECT_NAME={clm-project-name}'
38 - shell: !include-raw-escape:
39 - ../shell/sonar-cli.sh
45 - lf_python_common: &lf_python_common
46 name: lf-python-common
48 ######################
49 # Default parameters #
50 ######################
55 **/target/**/feature.xml
56 **/target/failsafe-reports/failsafe-summary.xml
57 **/target/surefire-reports/*-output.txt
63 project-type: freestyle
67 - lf-infra-properties:
68 build-days-to-keep: '{build-days-to-keep}'
71 - lf-infra-parameters:
75 lftools-version: '{lftools-version}'
77 name: NEXUS_IQ_CLI_JAR
78 default: nexus-iq-cli-1.44.0-01.jar
79 description: Nexus IQ CLI package to download and use.
81 name: ARCHIVE_ARTIFACTS
82 default: '{archive-artifacts}'
83 description: Artifacts to archive to the logs server.
87 build-timeout: '{build-timeout}'
88 jenkins-ssh-credential: '{jenkins-ssh-credential}'
97 - lf_python_clm_xc: &lf_python_xc_clm
98 name: lf-python-xc-clm
100 ######################
101 # Default parameters #
102 ######################
105 build-days-to-keep: 30 # 30 days for troubleshooting purposes
107 git-url: '$GIT_URL/$PROJECT'
108 java-version: openjdk8
109 staging-profile-id: '' # Unused in this job
111 submodule-recursive: true
114 - comment-added-contains-event:
115 comment-contains-value: run-xc-clm$
117 #####################
118 # Job Configuration #
119 #####################
122 # Build weekly on Saturdays
125 server-name: '{gerrit-server-name}'
126 trigger-on: '{obj:gerrit_clm_triggers}'
128 - project-compare-type: ANT
129 project-pattern: '{project}'
131 - branch-compare-type: ANT
132 branch-pattern: '**/{branch}'
139 - credentials-binding:
140 - username-password-separated:
141 credential-id: sonar-xc-clm
143 password: CLM_PASSWORD
145 - lf-update-java-alternatives:
146 java-version: '{java-version}'
147 - lf-infra-clm-python:
148 clm-project-name: '{project-name}'
151 name: '{project-name}-python-clm-{stream}'
152 id: gerrit-python-xc-clm
153 <<: *lf_python_common
154 # yamllint disable-line rule:key-duplicates
155 <<: *lf_python_xc_clm
158 - lf-infra-gerrit-scm:
159 jenkins-ssh-credential: '{jenkins-ssh-credential}'
161 refspec: '$GERRIT_REFSPEC'
162 branch: '$GERRIT_BRANCH'
163 submodule-recursive: '{submodule-recursive}'
164 choosing-strategy: default
167 name: '{project-name}-python-clm-{stream}'
168 id: github-python-xc-clm
169 <<: *lf_python_common
170 # yamllint disable-line rule:key-duplicates
171 <<: *lf_python_xc_clm
175 url: '{git-url}/{github-org}/{project}'
178 - lf-infra-github-scm:
179 url: '{git-clone-url}{github-org}/{project}'
181 branch: 'refs/heads/{branch}'
182 submodule-recursive: '{submodule-recursive}'
183 choosing-strategy: default
184 jenkins-ssh-credential: '{jenkins-ssh-credential}'
187 - lf-infra-github-pr-trigger:
188 trigger-phrase: '^run-xc-clm$'
189 only-trigger-phrase: false
190 status-context: 'CLM'
196 github_pr_admin_list:
203 - lf_tox_verify: &lf_tox_verify
206 ######################
207 # Default parameters #
208 ######################
211 build-days-to-keep: 7
213 git-url: '$GIT_URL/$GERRIT_PROJECT'
214 python-version: python2
216 submodule-recursive: true
220 #####################
221 # Job Configuration #
222 #####################
224 project-type: freestyle
229 - lf-infra-properties:
230 build-days-to-keep: '{build-days-to-keep}'
233 - lf-infra-parameters:
237 lftools-version: '{lftools-version}'
238 - lf-infra-tox-parameters:
240 tox-envs: '{tox-envs}'
244 build-timeout: '{build-timeout}'
245 jenkins-ssh-credential: '{jenkins-ssh-credential}'
248 - shell: !include-raw-escape:
249 # Workaround issue where the tox run later breaks the lftools virtualenv.
250 # Without running the install first the run in the publisher will fail
251 # due to missing lftools because it gets installed into a tox venv.
252 - ../shell/lftools-install.sh
253 - lf-infra-tox-install:
254 python-version: '{python-version}'
255 - shell: !include-raw-escape: ../shell/tox-run.sh
261 # Python projects typically use tox to run testing.
262 name: '{project-name}-tox-verify-{stream}'
263 id: gerrit-tox-verify
266 ######################
267 # Default parameters #
268 ######################
270 gerrit_verify_triggers:
271 - patchset-created-event:
273 exclude-trivial-rebase: false
274 exclude-no-code-change: false
275 - draft-published-event
276 - comment-added-contains-event:
277 comment-contains-value: recheck$
279 #####################
280 # Job Configuration #
281 #####################
284 - lf-infra-gerrit-scm:
285 jenkins-ssh-credential: '{jenkins-ssh-credential}'
287 refspec: '$GERRIT_REFSPEC'
288 branch: '$GERRIT_BRANCH'
289 submodule-recursive: '{submodule-recursive}'
290 choosing-strategy: gerrit
294 server-name: '{gerrit-server-name}'
295 trigger-on: '{obj:gerrit_verify_triggers}'
297 - project-compare-type: ANT
298 project-pattern: '{project}'
300 - branch-compare-type: ANT
301 branch-pattern: '**/{branch}'
304 # Python projects typically use tox to run testing.
305 name: '{project-name}-tox-verify-{stream}'
306 id: github-tox-verify
311 url: '{git-url}/{github-org}/{project}'
314 - lf-infra-github-scm:
315 url: '{git-clone-url}{github-org}/{project}'
316 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
318 submodule-recursive: '{submodule-recursive}'
319 choosing-strategy: default
320 jenkins-ssh-credential: '{jenkins-ssh-credential}'
323 - github-pull-request:
324 trigger-phrase: '^recheck$'
325 only-trigger-phrase: false
326 status-context: 'JJB Verify'
329 auto-close-on-fail: false