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.
12 name: '{project-name}-github-python-jobs'
14 # This job group contains all the recommended jobs that should be deployed
15 # for any project ci that is using GitHub.
24 - lf_tox_verify: &lf_tox_verify
28 # branch: git branch (default: master)
29 # tox-dir: directory containing the project's tox.ini relative to
30 # the workspace. Empty works if tox.ini is at project root.
32 project-type: freestyle
36 ######################
37 # Default parameters #
38 ######################
42 git-url: '$GIT_URL/$GERRIT_PROJECT'
44 submodule-recursive: true
53 - lf-infra-properties:
57 - lf-infra-parameters:
61 lftools-version: '{lftools-version}'
62 - lf-infra-tox-parameters:
64 tox-envs: '{tox-envs}'
68 build-timeout: '{build-timeout}'
69 jenkins-ssh-credential: '{jenkins-ssh-credential}'
72 - shell: !include-raw-escape:
73 # Workaround issue where the tox run later breaks the lftools virtualenv.
74 # Without running the install first the run in the publisher will fail
75 # due to missing lftools because it gets installed into a tox venv.
76 - ../shell/lftools-install.sh
77 - shell: !include-raw-escape:
78 - ../shell/tox-install.sh
85 # Python projects typically use tox to run testing.
86 name: '{project-name}-tox-verify-{stream}'
90 ######################
91 # Default parameters #
92 ######################
94 gerrit_verify_triggers:
95 - patchset-created-event:
97 exclude-trivial-rebase: false
98 exclude-no-code-change: false
99 - draft-published-event
100 - comment-added-contains-event:
101 comment-contains-value: recheck$
103 #####################
104 # Job Configuration #
105 #####################
108 - lf-infra-gerrit-scm:
109 jenkins-ssh-credential: '{jenkins-ssh-credential}'
111 refspec: '$GERRIT_REFSPEC'
112 branch: '$GERRIT_BRANCH'
113 submodule-recursive: '{submodule-recursive}'
114 choosing-strategy: gerrit
118 server-name: '{gerrit-server-name}'
119 trigger-on: '{obj:gerrit_verify_triggers}'
121 - project-compare-type: ANT
122 project-pattern: '{project}'
124 - branch-compare-type: ANT
125 branch-pattern: '**/{branch}'
128 # Python projects typically use tox to run testing.
129 name: '{project-name}-tox-verify-{stream}'
130 id: github-tox-verify
135 url: '{git-url}/{github-org}/{project}'
138 - lf-infra-github-scm:
139 url: '{git-clone-url}{github-org}/{project}'
140 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
142 submodule-recursive: '{submodule-recursive}'
143 choosing-strategy: default
144 jenkins-ssh-credential: '{jenkins-ssh-credential}'
147 - github-pull-request:
148 trigger-phrase: '^recheck$'
149 only-trigger-phrase: false
150 status-context: 'JJB Verify'
153 auto-close-on-fail: false