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 - lf-infra-tox-parameters:
63 tox-envs: '{tox-envs}'
67 build-timeout: '{build-timeout}'
68 jenkins-ssh-credential: '{jenkins-ssh-credential}'
71 - shell: !include-raw-escape:
72 # Workaround issue where the tox run later breaks the lftools virtualenv.
73 # Without running the install first the run in the publisher will fail
74 # due to missing lftools because it gets installed into a tox venv.
75 - ../shell/lftools-install.sh
76 - shell: !include-raw-escape:
77 - ../shell/tox-install.sh
84 # Python projects typically use tox to run testing.
85 name: '{project-name}-tox-verify-{stream}'
89 ######################
90 # Default parameters #
91 ######################
93 gerrit_verify_triggers:
94 - patchset-created-event:
96 exclude-trivial-rebase: false
97 exclude-no-code-change: false
98 - draft-published-event
99 - comment-added-contains-event:
100 comment-contains-value: recheck$
102 #####################
103 # Job Configuration #
104 #####################
107 - lf-infra-gerrit-scm:
108 jenkins-ssh-credential: '{jenkins-ssh-credential}'
110 refspec: '$GERRIT_REFSPEC'
111 branch: '$GERRIT_BRANCH'
112 submodule-recursive: '{submodule-recursive}'
113 choosing-strategy: gerrit
117 server-name: '{gerrit-server-name}'
118 trigger-on: '{obj:gerrit_verify_triggers}'
120 - project-compare-type: ANT
121 project-pattern: '{project}'
123 - branch-compare-type: ANT
124 branch-pattern: '**/{branch}'
127 # Python projects typically use tox to run testing.
128 name: '{project-name}-tox-verify-{stream}'
129 id: github-tox-verify
134 url: '{git-url}/{github-org}/{project}'
137 - lf-infra-github-scm:
138 url: '{git-clone-url}{github-org}/{project}'
139 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
141 submodule-recursive: '{submodule-recursive}'
142 choosing-strategy: default
143 jenkins-ssh-credential: '{jenkins-ssh-credential}'
146 - github-pull-request:
147 trigger-phrase: '^recheck$'
148 only-trigger-phrase: false
149 status-context: 'JJB Verify'
152 auto-close-on-fail: false