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'
43 submodule-recursive: true
52 - lf-infra-properties:
56 - lf-infra-parameters:
59 - lf-infra-tox-parameters:
61 tox-envs: '{tox-envs}'
65 build-timeout: '{build-timeout}'
66 jenkins-ssh-credential: '{jenkins-ssh-credential}'
69 - shell: !include-raw-escape:
70 # Workaround issue where the tox run later breaks the lftools virtualenv.
71 # Without running the install first the run in the publisher will fail
72 # due to missing lftools because it gets installed into a tox venv.
73 - ../shell/lftools-install.sh
74 - shell: !include-raw-escape:
75 - ../shell/tox-install.sh
86 # Python projects typically use tox to run testing.
87 name: '{project-name}-tox-verify-{stream}'
92 - lf-infra-gerrit-scm:
93 jenkins-ssh-credential: '{jenkins-ssh-credential}'
95 refspec: '$GERRIT_REFSPEC'
96 branch: '$GERRIT_BRANCH'
97 submodule-recursive: '{submodule-recursive}'
98 choosing-strategy: gerrit
102 server-name: '{gerrit-server-name}'
104 - patchset-created-event:
105 exclude-drafts: false
106 exclude-trivial-rebase: false
107 exclude-no-code-change: false
108 - draft-published-event
109 - comment-added-contains-event:
110 comment-contains-value: recheck$
112 - project-compare-type: ANT
113 project-pattern: '{project}'
115 - branch-compare-type: ANT
116 branch-pattern: '**/{branch}'
119 # Python projects typically use tox to run testing.
120 name: '{project-name}-tox-verify-{stream}'
121 id: github-tox-verify
126 url: '{git-url}/{github-org}/{project}'
129 - lf-infra-github-scm:
130 url: '{git-clone-url}{github-org}/{project}'
131 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
133 submodule-recursive: '{submodule-recursive}'
134 choosing-strategy: default
135 jenkins-ssh-credential: '{jenkins-ssh-credential}'
138 - github-pull-request:
139 trigger-phrase: '^recheck$'
140 only-trigger-phrase: false
141 status-context: 'JJB Verify'
144 auto-close-on-fail: false